This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/15845] New: Illegal program not detected, circular renames
- 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: 6 Jun 2004 10:21:34 -0000
- Subject: [Bug ada/15845] New: Illegal program not detected, circular renames
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
procedure Test_247019 is
procedure p1;
generic
package pak1 is
procedure p2 renames p1;
end pak1;
package new_pak1 is new pak1;
procedure p1 renames new_pak1.p2; --ERROR: circular renames
begin
p1;
end Test_247019;
I expect an error message like this:
test_247019.adb:10:33: self-referencing renaming declaration
But the compiler remains silent.
--
Summary: Illegal program not detected, circular renames
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=15845