From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6be630961a327bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-09 20:15:39 PST Path: supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!newsfeed.direct.ca!look.ca!europa.netcrusader.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.slurp.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: C++ to Ada95 -- bitten! References: <6oBu5.666$zo.17816@news1.mts.net> Organization: Multimedia X-Newsreader: trn 4.0-test72 (19 April 1999) From: cts@kampong.aedinc.net ((null)) Message-ID: Date: Sun, 10 Sep 2000 03:07:06 GMT NNTP-Posting-Host: 208.4.231.188 X-Trace: newsfeed.slurp.net 968555226 208.4.231.188 (Sat, 09 Sep 2000 22:07:06 CDT) NNTP-Posting-Date: Sat, 09 Sep 2000 22:07:06 CDT Xref: supernews.google.com comp.lang.ada:567 Date: 2000-09-10T03:07:06+00:00 List-Id: In article <6oBu5.666$zo.17816@news1.mts.net>, Nick J Chackowsky wrote: >So just when I think I'm getting the idea of Ada95, along comes this >problem, demonstrated by an admittedly contrived program. Gnat 3.13p crashes >trying to compile this: > > with ada.float_text_io; > with ada.numerics; > with ada.numerics.elementary_functions; > use ada.numerics.elementary_functions; > procedure crash is > f, g : float; > begin > ada.float_text_io.get(f); > g := 2.7183 ** (-5340)/f + 21.5; > end crash; The compiler shouldn't crash no matter what kind of input you feed it. You should send a bug report to ACT. The file gnatinfo.txt will explain where and how to send the bug report. [snip] >I guess my question is, what _category_ of error is this? I know to look >(now) for an integer in a floating-point calculation, No, raising 2.7183 to an integer power is fine, what probably killed[1] the compiler was trying to figure out 2.7183 raised the to -5340 power. -- ======================================================================= Life is short. | Craig Spannring Bike hard, ski fast. | cts@internetcds.com --------------------------------+------------------------------------