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/18204] New: Legal program rejected, completion of private type declaration


--   adapted from: A. Imran (me5@privacy.net)
package Test_126 is

    task type T1;

    type T2 is tagged limited record
        x1: T1;
    end record;

    type T3 is new T2 with private;

    type T3_access is access T3; -- line 12

private

    type T3 is new T2 with null record; -- line 16
end Test_126;

The program is legal but GCC 3.4.2 says:

test_126.ads:16:05: "T3_Access" conflicts with declaration at line 12
gnatmake: "test_126.ads" compilation error

-- 
           Summary: Legal program rejected, completion of private type
                    declaration
           Product: gcc
           Version: 3.4.2
            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=18204


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