This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/18204] New: Legal program rejected, completion of private type declaration
- From: "ludovic dot brenta at insalien dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2004 17:51:16 -0000
- Subject: [Bug ada/18204] New: Legal program rejected, completion of private type declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
-- 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