--   adapted from: A. Imran ([EMAIL PROTECTED])
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

Reply via email to