public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/18204] New: Legal program rejected, completion of private type declaration
@ 2004-10-28 17:51 ludovic dot brenta at insalien dot org
  2004-10-28 17:51 ` [Bug ada/18204] " ludovic dot brenta at insalien dot org
  2004-10-31 19:30 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 4+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-10-28 17:51 UTC (permalink / raw)
  To: gcc-bugs

--   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


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <bug-18204-286@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2008-04-12  3:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-28 17:51 [Bug ada/18204] New: Legal program rejected, completion of private type declaration ludovic dot brenta at insalien dot org
2004-10-28 17:51 ` [Bug ada/18204] " ludovic dot brenta at insalien dot org
2004-10-31 19:30 ` pinskia at gcc dot gnu dot org
     [not found] <bug-18204-286@http.gcc.gnu.org/bugzilla/>
2008-04-12  3:24 ` sam at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).