comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: I am leaving Ada :-( because of GNAT bugs
Date: Sat, 09 Dec 2017 09:35:22 +0000
Date: 2017-12-09T09:35:22+00:00	[thread overview]
Message-ID: <lyy3mctfad.fsf@pushface.org> (raw)
In-Reply-To: db611f79-dc7e-4d9c-bd68-eefb1dbcc25a@googlegroups.com

bj.mooremr@gmail.com writes:

> On Thursday, December 7, 2017 at 12:45:11 AM UTC-7, Victor Porton wrote:
>> Yet one mysterious bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83310

> I am not sure which version of GNAT you are using, GPL for FSF. Both
> are good quality compilers, but if you are running into compiler bugs
> in one, it might be worth trying your source in the other. For your
> source code, I was trying it out with GNAT GPL 2017.

OP said 7.2.0, => FSF.

> 2. For a number of the tagged types, the Parse function had the
> controlling parameter as the second parameter. I think Ada might allow
> that, but I generally put the controlling parameter (the one that has
> the same type as the tagged type), at the beginning as the first
> parameter.

It has to be the first parameter for object prefix notation to work (ARM
4.1.3(9.1) - that took some finding!)

> 9. In rdf-redland-query_results.ads, you declare a type derived from a
> tagged type, but then try to apply a Pre'Class aspect. This apparently
> is not legal, though the GPL 2016 compiler doesn't complain. I ran
> into this, with my own code, that GPL 2017 told me with a compiler
> error that the code was not legal.
>
> Pre'Class can only be applied to a root type apparently.

See ARM 6.1.1(17.1/4), "Pre'Class shall not be specified for an
overriding primitive subprogram of a tagged type T unless the Pre'Class
aspect is specified for the corresponding primitive subprogram of some
ancestor of T."

  reply	other threads:[~2017-12-09  9:35 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-07  7:45 I am leaving Ada :-( because of GNAT bugs Victor Porton
2017-12-07  9:54 ` Simon Wright
2017-12-09  8:53 ` bj.mooremr
2017-12-09  9:35   ` Simon Wright [this message]
2017-12-11 22:47     ` Randy Brukardt
2017-12-12 19:43   ` jm.tarrasa
2017-12-12 20:50     ` Dmitry A. Kazakov
2017-12-12 21:15     ` Paul Rubin
2017-12-13  7:01       ` Luke A. Guest
2017-12-13 17:46         ` Jeffrey R. Carter
2017-12-13 19:37           ` Jacob Sparre Andersen
2017-12-13 21:52             ` Jeffrey R. Carter
2017-12-14 12:54               ` Lucretia
2017-12-14 12:52           ` Lucretia
2017-12-14 13:44             ` Dmitry A. Kazakov
2017-12-14 14:53               ` MM
2017-12-14 16:43                 ` Luke A. Guest
2017-12-14 19:37                   ` MM
2017-12-14 17:01             ` Jeffrey R. Carter
2017-12-15 21:52         ` Paul Rubin
2017-12-12 22:57 ` Mehdi Saada
2017-12-13  6:43   ` Per Sandberg
2017-12-13  7:01   ` Luke A. Guest
2017-12-13  8:03   ` G. B.
2017-12-13  9:06     ` Dmitry A. Kazakov
2017-12-13 17:41   ` Jeffrey R. Carter
replies disabled

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