comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Static vs dynamic evaluation anomaly?
Date: Thu, 08 Feb 2007 10:01:53 +0100
Date: 2007-02-08T10:01:53+01:00	[thread overview]
Message-ID: <87tzxxdnum.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 12slifhk3sqnaca@corp.supernews.com

Matt Jaffe <jaffem@cableone.net> writes:
> Jeffrey R. Carter wrote:
>> Adam Beneschan wrote:
>>>
>>> Yes, it does make a difference.  It appears that I'm using version
>>> 4.0.0.  When I use -gnato, I get the correct results; when I use -
>>> gnatp, or no flag, I get incorrect results (Text_IO displays values
>>> greater than 63, same as what Matt was seeing).
>>
>> This is a known issue. GNAT is not Ada without -gnato and -fstack-check.
> Since you say this is an already known issue, I think that means I can
> be excused from trying to figure out how to submit a bug report on it
> (which I was dutifully going to try to do, based on the suggestions
> that several others here have made).  I remain curious, however:  Is
> it a known issue for which a correction to gnat is planned? Or is it
> planned to leave it forever as a "known oddity"?  Or is the question
> as to whether or not to correct it still under debate somewhere?  I
> have no particular axe to grind here, just pure curiosity.

I agree with Simon and Adam: this is a compiler bug.  My rationale is
that -gnato is defined as enabling "overflow checks", but modular
types never overflow.  So, -gnato should have no effect on modular
types.

Since this bug has now been confirmed on several platforms, we now
know it is not specific to any one distribution, so the proper place
to submit it is http://gcc.gnu.org/bugzilla.  Please go ahead.

-- 
Ludovic Brenta.



  reply	other threads:[~2007-02-08  9:01 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <12shen4qjhv41a7@corp.supernews.com>
2007-02-06 19:17 ` Static vs dynamic evaluation anomaly? Jeffrey R. Carter
2007-02-06 20:01 ` Adam Beneschan
2007-02-06 20:15   ` Ludovic Brenta
2007-02-06 23:38     ` Matt.Jaffe
     [not found]     ` <12sipb529oilnab@corp.supernews.com>
2007-02-07 10:05       ` Ludovic Brenta
2007-02-07 21:54       ` Simon Wright
2007-02-09 12:39         ` GNAT's version Peter Hermann
2007-02-07  3:32   ` Static vs dynamic evaluation anomaly? Steve
2007-02-07 10:00     ` Ludovic Brenta
2007-02-07 10:21       ` Georg Bauhaus
2007-02-07 16:44         ` Adam Beneschan
2007-02-07 18:27           ` Jeffrey R. Carter
2007-02-07 18:55             ` Adam Beneschan
2007-02-07 21:52               ` Simon Wright
2007-02-08  0:48               ` Jeffrey R. Carter
2007-02-08  1:26                 ` Adam Beneschan
2007-02-08 18:44                   ` Jeffrey R. Carter
2007-02-09  7:57                     ` Stefan Lucks
2007-02-09 18:50                       ` Jeffrey R. Carter
2007-02-09 21:12                         ` Stefan Lucks
2007-02-10  5:22                           ` Jeffrey R. Carter
2007-02-10 12:29                             ` Ludovic Brenta
2007-02-08  6:57             ` Matt Jaffe
2007-02-08  9:01               ` Ludovic Brenta [this message]
2007-02-08 10:32                 ` Georg Bauhaus
2007-02-08 11:13                 ` Jean-Pierre Rosen
2007-02-08 13:02                   ` Ludovic Brenta
2007-02-07 21:46         ` Matt.Jaffe
2007-02-07  6:24   ` AW: " Grein, Christoph (Fa. ESG)
2007-02-07  6:59     ` Stefan Lucks
replies disabled

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