This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/16214] New: Legal program rejected, nested generic packages
- 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: 25 Jun 2004 22:37:20 -0000
- Subject: [Bug ada/16214] New: Legal program rejected, nested generic packages
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
generic
package parent is
end parent;
generic
package parent.pak2 is
end parent.pak2;
generic
package parent.pak2.pak3 is
end parent.pak2.pak3;
with parent.pak2.pak3;
generic
package parent.pak2.pak4 is
package pak3 is new parent.pak2.pak3;
end parent.pak2.pak4;
with parent;
package pak1 is new parent;
with parent.pak2;
with pak1;
package pak6 is new pak1.pak2;
with parent.pak2.pak4;
with pak6;
package Test_253737 is new pak6.pak4;
$ gcc -q -O1 test_253737
test_253737.ads:4:01: instantiation error at parent-pak2-pak4.ads:5
test_253737.ads:4:01: "pak2" not declared in "pak1"
compilation abandoned due to previous error
gnatmake: "test_253737.ads" compilation error
P.S. This is the last of the bugs reports I received!
PPS. Email me for the test suite to reproduce all these bugs.
--
Summary: Legal program rejected, nested generic packages
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16214