This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/16076] New: Illegal program not detected, RM 13.14(5)
- 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: 19 Jun 2004 12:49:17 -0000
- Subject: [Bug ada/16076] New: Illegal program not detected, RM 13.14(5)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
-- RM 13.14(5)
-- The occurrence of a generic_instantiation causes freezing;
procedure Test_247570 is
generic
procedure p1;
pragma Convention (Ada, p1);
procedure p1 is
begin
null;
end p1;
procedure new_p1 is new p1;
pragma Convention (Ada, new_p1); --ERROR: new_p1 already frozen
begin
null;
end Test_247570;
I expect an error message like:
test_247570.adb:16:3: "new_p1" is already frozen
But the compiler is silent.
--
Summary: Illegal program not detected, RM 13.14(5)
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=16076