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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2317a992e7241939 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: GNAT won't link on "warning" Date: Mon, 29 Nov 2004 17:52:42 +0100 Organization: None Message-ID: <1668441.FGe71fhq9K@linux1.krischik.com> References: <3664370.5jO7nDmgDP@linux1.krischik.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1101747656 02 31493 8Rg8XlpJcchfV8b 041129 17:00:56 X-Complaints-To: usenet-abuse@t-online.de X-ID: b-4kbmZHZeMrKWkDveE1zPTSbfReHq+rFsA-r+aaNt+PjLQ6GKzK61 User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:6643 Date: 2004-11-29T17:52:42+01:00 List-Id: David C. Hoos, Sr. wrote: > The reason it won't compile is that you caused the constraint > error at compile time. This is an error and not a warning. > > When runtime constraint errors are detected at compile time, > the warning message says "will raise constraint_error." The > message you received said "raises constraint_error," i.e. > present tense, instead of the future tense warning. > > If you do the illegal conversion at run time (i.e. after > the "begin," it will compile and link, with a warning, but > fail at run time. Thanks! Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com