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-Thread: 103376,e01fe1b326df26d4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Division by zero Date: Mon, 13 Jun 2005 18:59:28 +0100 Organization: Pushface Message-ID: References: <42aca05a$0$24379$9b4e6d93@newsread2.arcor-online.net> <9wbre.6940$U4.992923@news.xtra.co.nz> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1118685568 4301 62.49.19.209 (13 Jun 2005 17:59:28 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 13 Jun 2005 17:59:28 +0000 (UTC) Cancel-Lock: sha1:uhZfm43I5TKEPsz7qrjXmIOo5XI= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:11321 Date: 2005-06-13T18:59:28+01:00 List-Id: Marius Amado Alves writes: > Indeed. *Mac* version. > > $ gnatmake -gnatv -gnatwa x -f > gcc -c -gnatv -gnatwa x.adb > > GNAT 3.3 20040913 (GNAT for Mac OS X build 1650) > Copyright 1992-2002 Free Software Foundation, Inc. > > Compiling: x.adb (source file time stamp: 2005-06-13 08:47:40) > 11 lines: No errors But with 4.0.0 built for Darwin .. both lines uncommented .. grendel:~/tmp simon$ gnatmake -c -u -f -v -gnatwaL x.adb GNATMAKE 4.0.0 Copyright 1995-2004 Free Software Foundation, Inc. gcc -c -gnatwaL x.adb x.adb:7:12: division by zero x.adb:7:12: static expression raises "Constraint_Error" x.adb:9:04: warning: unreachable code x.adb:9:13: warning: division by zero x.adb:9:13: warning: "Constraint_Error" will be raised at run time End of compilation gnatmake: "x.adb" compilation error