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/15841] New: Illegal program not detected, RM 3.9(17)


-- RM 3.9(17)
-- Given a prefix X that is of a class-wide tagged type
with ada.tags;
package Test_247015 is
   type T1 is tagged null record;
   x: T1;
   y: ada.tags.tag := T1(x)'Tag;   --ERROR: prefix of 'tag must be classwide
end Test_247015;


I expect an error message like this:
test_247015.ads:7:22: "T1(x)" is not a classwide tagged type

But I get nothing.

-- 
           Summary: Illegal program not detected, RM 3.9(17)
           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=15841


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