comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: Derivation + Access Discriminant = Headaches
Date: 1999/03/19
Date: 1999-03-19T00:00:00+00:00	[thread overview]
Message-ID: <uaex9ntd8.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: m3zp591hq6.fsf@mheaney.ni.net

Matthew Heaney <matthew_heaney@acm.org> writes:

> Richard D Riehle <laoXhai@ix.netcom.com> writes:
> 
> >  On GNAT, an equivalent type hierarchy works fine.  
> 
> Which version of GNAT are you using?  On what OS?  On what machine?  
> 
> I'm having this problem using a home-grown port of v3.11p, so it may be
> a porting problem.

I compiled Matthew's code with GNAT 3.11p on Windows NT (the public
binary distribution) and got the error :

q.ads:4:14: subtype must be compatible with parent discriminant
gnatmake: "q.ads" compilation error

ObjectAda (same machine) gives no error.

I suspect GNAT has a compiler bug; I'll let Matthew submit it.

-- Stephe




  reply	other threads:[~1999-03-19  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-19  0:00 Derivation + Access Discriminant = Headaches Matthew Heaney
1999-03-19  0:00 ` Richard D Riehle
1999-03-19  0:00   ` Matthew Heaney
1999-03-19  0:00     ` Stephen Leake [this message]
1999-03-20  0:00     ` Richard D Riehle
1999-03-20  0:00 ` Nick Roberts
replies disabled

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