[Bug ada/15845] New: Illegal program not detected, circular renames

ludovic dot brenta at insalien dot org gcc-bugzilla@gcc.gnu.org
Sun Jun 6 10:21:00 GMT 2004


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



More information about the Gcc-bugs mailing list