comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <martin@krischik.com>
Subject: Re: GNAT won't link on "warning"
Date: Mon, 29 Nov 2004 17:52:42 +0100
Date: 2004-11-29T17:52:42+01:00	[thread overview]
Message-ID: <1668441.FGe71fhq9K@linux1.krischik.com> (raw)
In-Reply-To: mailman.150.1101731910.10401.comp.lang.ada@ada-france.org

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



  reply	other threads:[~2004-11-29 16:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-29  9:45 GNAT won't link on "warning" Martin Krischik
2004-11-28 19:37 ` Manuel G. R.
2004-11-29 12:37 ` David C. Hoos, Sr.
2004-11-29 16:52   ` Martin Krischik [this message]
2004-11-29 15:42 ` Sandro Magi
2004-11-30 19:38 ` Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox