comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Type vs subtype about visibility of parent's private full definition
Date: Thu, 16 May 2013 22:25:12 +0200
Date: 2013-05-16T22:25:12+02:00	[thread overview]
Message-ID: <op.ww61oaqnule2fv@cardamome> (raw)
In-Reply-To: lyk3mzx7sm.fsf@pushface.org

Le Thu, 16 May 2013 17:29:13 +0200, Simon Wright <simon@pushface.org> a  
écrit:
> if I write instead of Parent_Type and
> Instance_Type above
>
>    type Instance_Type is
>      new Parents.Instance_Type
>      (Discriminant => 2);
>
> or
>
>    subtype Instance_Type is
>      Parents.Instance_Type
>      (Discriminant => 2);
>
> it compiles OK.

The first does not compile for me with GNAT from GCC 4.8, it fails with  
the message given in the original message, which is “no selector "Value"  
for private type derived from "Instance_Type"”.

What GNAT flavour did you tried it with? GNAT Pro or GPL or FSF?

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  reply	other threads:[~2013-05-16 20:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15  8:13 Type vs subtype about visibility of parent's private full definition Yannick Duchêne (Hibou57)
2013-05-15 14:44 ` Adam Beneschan
2013-05-15 20:45   ` Yannick Duchêne (Hibou57)
2013-05-16 13:54     ` Marc C
2013-05-17  0:01   ` Randy Brukardt
2013-05-17 15:48     ` Adam Beneschan
2013-05-16 15:29 ` Simon Wright
2013-05-16 20:25   ` Yannick Duchêne (Hibou57) [this message]
2013-05-16 20:28     ` Yannick Duchêne (Hibou57)
replies disabled

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