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!news4.google.com!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!news.xtra.co.nz!53ab2750!not-for-mail From: "Lurker" Newsgroups: comp.lang.ada References: <42aca05a$0$24379$9b4e6d93@newsread2.arcor-online.net> Subject: Re: Division by zero X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <9wbre.6940$U4.992923@news.xtra.co.nz> Date: Mon, 13 Jun 2005 20:34:20 +1200 NNTP-Posting-Host: 219.88.171.11 X-Complaints-To: abuse@xtra.co.nz X-Trace: news.xtra.co.nz 1118651525 219.88.171.11 (Mon, 13 Jun 2005 20:32:05 NZST) NNTP-Posting-Date: Mon, 13 Jun 2005 20:32:05 NZST Organization: Xtra Xref: g2news1.google.com comp.lang.ada:11307 Date: 2005-06-13T20:34:20+12:00 List-Id: "Georg Bauhaus" wrote in message news:42aca05a$0$24379$9b4e6d93@newsread2.arcor-online.net... > You could request more warnings: > > $ gnatgcc -c -gnatv -gnatwa x.adb > > GNAT 3.4.4 20050314 (prerelease) (Debian 3.4.3-13) Copyright 1992-2004 Free Software Foundation, Inc. > > Compiling: x.adb (source file time stamp: 2005-06-12 22:47:07) > > 9. return a/some_constant; -- line 2 > | > >>> warning: division by zero > >>> warning: "Constraint_Error" will be raised at run time That's a new one for me. Yes - that's exactly what I would expect. However, not everyone is running Debian and there were other posters in this group who confirmed that Windows version doesn't flag it as a warning even with full warnings on.