This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/49346] New: GNAT fails to compile combination of c23006e and c32107a ACATS tests
- From: "tero.koskinen at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 9 Jun 2011 17:35:16 +0000
- Subject: [Bug ada/49346] New: GNAT fails to compile combination of c23006e and c32107a ACATS tests
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49346
Summary: GNAT fails to compile combination of c23006e and
c32107a ACATS tests
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: tero.koskinen@iki.fi
GNAT gives following error when I try to compile ACATS tests c23006e and
c32107a together:
$ gnatmake test2
gcc -c test2.adb
c32107a.adb:316:28: invalid prefix in selected component "P1"
c32107a.adb:316:40: expected private type "PRIV" defined at line 292
c32107a.adb:316:40: found procedure name instead of function
gnatmake: "test2.adb" compilation error
$
$ cat -n test2.adb
1 with c23006e;
2 with c32107a;
3 procedure test2 is
4 begin
5 null;
6 end;
$
Commenting out either line 1 or line 2 allows compilation to succeed.
Testcase:
#!/bin/sh
wget -c http://www.ada-auth.org/acats-files/3.0/acats_30.tar.Z
tar zxf acats_30.tar.Z
cp support/{repbody.ada,repspec.ada} .
cp ./c3/c32107a.ada ./c2/c23006e.ada .
gnatchop *.ada
cat > test2.adb<<EOF
with c23006e;
with c32107a;
procedure test2 is
begin
null;
end;
EOF
gnatmake test2
##ENDOFTESTCASE
gnatls reports following version:
GNATLS 4.6.0 20110530
Tested on Fedora 15/i386.