This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/15607] New: Legal program rejected, private view of type is constrained
- From: "ludovic dot brenta at insalien dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2004 09:36:56 -0000
- Subject: [Bug ada/15607] New: Legal program rejected, private view of type is constrained
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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