From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19003 invoked by alias); 28 Oct 2004 17:51:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 18996 invoked by uid 48); 28 Oct 2004 17:51:16 -0000 Date: Thu, 28 Oct 2004 17:51:00 -0000 From: "ludovic dot brenta at insalien dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20041028175112.18204.ludovic.brenta@insalien.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug ada/18204] New: Legal program rejected, completion of private type declaration X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg03536.txt.bz2 List-Id: -- 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