This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/15846] New: Illegal program not detected, self renames


package Test_247020 is

   type T1 is null record;

   function "=" (left, right : in T1) return boolean
        renames Test_247020."=";  --ERROR: self-rename
end Test_247020;


I expect an error message like this:
test_247020.ads:6:24: self-referencing renaming declaration

But the compiler remains silent.

-- 
           Summary: Illegal program not detected, self 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=15846


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]