public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/15607] New: Legal program rejected, private view of type is constrained
@ 2004-05-23 23:37 ludovic dot brenta at insalien dot org
  2004-05-24  1:20 ` [Bug ada/15607] private view of type is constrained rejected pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-05-23 23:37 UTC (permalink / raw)
  To: gcc-bugs

package Test_244938 is
    type T1(<>) is private;
    subtype T2 is T1;
private
    type T1(b : Boolean := false) is null record;
    x: T2;
end Test_244938;

The compiler says:

test_244938.ads:6:08: unconstrained subtype not allowed (need initialization)

-- 
           Summary: Legal program rejected, private view of type is
                    constrained
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic dot brenta at insalien dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15607


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-20 10:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-23 23:37 [Bug ada/15607] New: Legal program rejected, private view of type is constrained ludovic dot brenta at insalien dot org
2004-05-24  1:20 ` [Bug ada/15607] private view of type is constrained rejected pinskia at gcc dot gnu dot org
2004-07-20 10:27 ` cvs-commit at gcc dot gnu dot org
2004-07-20 10:29 ` charlet at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).