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,a0d43ac4516d0597 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-02 22:46:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Misleading Compiler Warning Date: 03 Feb 2003 06:45:37 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1044254795 29403 62.49.19.209 (3 Feb 2003 06:46:35 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 3 Feb 2003 06:46:35 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:33707 Date: 2003-02-03T06:45:37+00:00 List-Id: volkert@nivoba.de (Volkert) writes: > The snippet is reproduced from a large application we currenty > bringing from DEC Ada 83 to GNAT (OpenVMS).... the GNAT 3.16w > gives a Compiler-Warning whereas the DEC Compiler keeps silent. > > % gnat make wmain.adc > gcc -c -x ada wmain.adc > gcc -c -x ada pack.adc > pack.adc:9:03: warning: in instantiation at Gen.adc:4 > pack.adc:9:03: warning: value not in range of type "Standard.Integer" > pack.adc:9:03: warning: "Constraint_Error" will be raised at run time > gnatbind -x wmain.ali > gnatlink wmain.ali > > The example runs on both compilers without raising a Constraint_Error. > > Is it just a misleading warning message ... if so, i send a > bug-report to act. I'm sure this is a bad warning -- if only because there is nothing in the regenerated code (-gnatdg) about constraint errors. It also happens on Saturday's experimental GCC-3.4. If you have 3.16w, you should be supported -- ACT are very quick to respond to reports like this, IME, don't hold back!