comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Bug in Ada (SuSe 10.2) ?
Date: Fri, 22 Feb 2008 08:43:30 -0800 (PST)
Date: 2008-02-22T08:43:30-08:00	[thread overview]
Message-ID: <3d581048-23bb-44f2-915c-02386b5c3b40@s12g2000prg.googlegroups.com> (raw)
In-Reply-To: U6GdnQdR3_lkViHanZ2dnUVZ_ramnZ2d@comcast.com

On Feb 20, 4:55 pm, tmo...@acm.org wrote:
> > > The simple explanation is that GNAT, by default, is not an Ada compiler.
> > will not be an Ada compiler until they finally get the Last Bug out,
>
>    Technically it's an Ada compiler if and only if it passes the
> validation tests, and the default Gnat therefore isn't an Ada compiler,
> and shouldn't be advertised as one.  If it its bugs were sufficiently
> obscure they are not detected by the validation tests, then it would be an
> Ada compiler.

Unfortunately, I don't think "not detected by validation tests"
implies "obscure".  I have seen *many* cases where someone allegedly
writes a library or tool in Ada and makes the source publicly
available, but it turns out the program really isn't written in Ada at
all, because it contains constructs that the Ada standard prohibits,
but were not caught because of GNAT bugs that let them slip through.
So then code that the authors claim is Ada, but really isn't, gets
posted on the Internet, and then someone else tries to compile it with
a different vendor's compiler and that compiler properly rejects it.
I don't know what happens after that, or how many users may have tried
downloading quasi-Ada code, tried to compile it with some compiler,
run into problems, and given up.  But a bug that affects real code
like this, particularly real code that is intended for many users to
use, probably shouldn't be considered "obscure".

>    More importantly, how many times have we seen postings here from people
> new to Ada saying "I heard about Ada, this supposedly highly safe
> language, but it doesn't even catch an overflow, though the manual claims
> it does."?  vs How many times have people new to Ada posted messages
> asking about some obscure compiler bug they've stumbled across.

OK, this claim has been made (or implied) several times now---an
implication that the -gnato issue causes a lot more complaints than
supposedly obscure compiler bugs.  After thinking about this, I'm not
convinced that this is true.  Not that I have the time to do a study.
But it seems to me that there have been several threads in recent
months where someone couldn't figure out why their program didn't work
and it the answer seemed to be that it should have worked but the
compiler muffed it.  (The compiler isn't always GNAT, and sometimes
it's not identified.)  If I had to guess, I'd say this has come up
once every couple months at least, in recent months.  I don't recall
questions about integer overflow coming up significantly more than
that.  But I could have just missed them.  This just my vague
impression and isn't based on a methodical study.

After this discussion, I'm convinced that GNAT got the -gnato default
wrong (although maybe it's right for certain target processors) and I
can see the practical problems it causes.  (I'm less convinced about
stack checking.)   But it still seems a bit pointless, and/or overly
pedantic, to claim that this makes GNAT "not an Ada compiler" when
those flags aren't used.  Of course, it was probably pointless for me
to even argue about that in the first place.  But what would Usenet be
without pointless arguments?

                                    -- Adam



  parent reply	other threads:[~2008-02-22 16:43 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-19  8:47 Bug in Ada (SuSe 10.2) ? Reinert Korsnes
2008-02-19  9:08 ` Niklas Holsti
2008-02-19  9:53   ` Reinert Korsnes
2008-02-19 11:21     ` Ludovic Brenta
2008-02-20 12:41       ` Reinert Korsnes
2008-02-20 16:50         ` Adam Beneschan
2008-02-20 18:31           ` Jeffrey R. Carter
2008-02-20 23:10             ` Adam Beneschan
2008-02-20 23:22             ` Adam Beneschan
2008-02-21  0:31               ` Randy Brukardt
2008-02-21  8:56                 ` Jean-Pierre Rosen
2008-02-21  9:08                   ` Alex R. Mosteo
2008-02-21  9:27                     ` Ludovic Brenta
2008-02-21  9:46                       ` billjones6789
2008-02-21 12:27                         ` Access type (mis)use (Was: Bug in Ada (SuSe 10.2) ?) Jacob Sparre Andersen
2008-02-21 19:40                           ` Bob Klungle
2008-02-21 21:25                             ` Jeffrey R. Carter
2008-02-21 21:57                             ` Vadim Godunko
2008-02-21 22:32                         ` Bug in Ada (SuSe 10.2) ? Randy Brukardt
2008-02-22 16:10                           ` billjones6789
2008-02-22 19:21                             ` Georg Bauhaus
2008-02-22 21:29                               ` Vadim Godunko
2008-02-22 21:39                                 ` Robert A Duff
2008-02-23 10:16                               ` billjones6789
2008-02-22 19:52                             ` Randy Brukardt
2008-02-23 10:36                               ` billjones6789
2008-02-26  0:32                                 ` Randy Brukardt
2008-02-26 16:46                                   ` billjones6789
2008-02-26 20:53                                     ` Randy Brukardt
2008-02-27  1:05                                     ` Robert A Duff
2008-02-27 10:06                                       ` billjones6789
2008-02-27 17:49                                         ` Robert A Duff
2008-02-28  0:30                                           ` Randy Brukardt
2008-02-28 15:33                                             ` Robert A Duff
2008-03-06 17:46                                             ` Adam Beneschan
2008-02-21  0:31               ` Jeffrey R. Carter
2008-02-21  0:35                 ` Jeffrey R. Carter
2008-03-06 11:55                   ` Colin Paul Gloster
2008-02-21  0:55               ` tmoran
2008-02-21  8:08                 ` billjones6789
2008-02-21  9:11                 ` Alex R. Mosteo
2008-02-21 23:01                   ` Randy Brukardt
2008-02-22 16:43                 ` Adam Beneschan [this message]
2008-02-22  9:06               ` Stephen Leake
2008-02-22  5:40       ` Gautier
replies disabled

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