with ada.text_io;
generic package my_int_io
     renames ada.text_io.integer_io;  --ERROR: not a library unit 10.1.1/14

By RM 10.1.1/14: "In a library_unit_renaming_declaration, the (old) name
shall denote a library_item."  But ada.text_io.integer_io is not a
library_item, so this library_unit renaming should be rejected.


-- 
           Summary: Accepts illegal program, RM 10.1.1/14
           Product: gcc
           Version: 4.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic at ludovic-brenta dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42148

Reply via email to