This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/51114] New: Got compiler error when creating a private subtype
- From: "frederic.praca at free dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 12 Nov 2011 23:35:50 +0000
- Subject: [Bug ada/51114] New: Got compiler error when creating a private subtype
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51114
Bug #: 51114
Summary: Got compiler error when creating a private subtype
Classification: Unclassified
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: frederic.praca@free.fr
Created attachment 25810
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25810
The source files which can trigger the bug
When creating a private subtype through a function caused a compiler error.
Output was :
gnatmake -Wall -Wextra gnat_bug.adb
gcc-4.4 -c -Wall -Wextra gnat_bug.adb
+===========================GNAT BUG DETECTED==============================+
| 4.4.3 (i486-pc-linux-gnu) GCC error: |
| in gnat_to_gnu_entity, at ada/gcc-interface/decl.c:545 |
| Error detected at gnat_bug.adb:9:30 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html. |
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box in the report. |
| Include the exact gcc-4.4 or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
+==========================================================================+
Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
gnat_bug.adb
chords.ads
namedstructures.ads
notes.ads
intervals.ads
gnat_bug.adb:9:04: warning: "Failling_Chord" is not modified, could be declared
constant
compilation abandoned
gnatmake: "gnat_bug.adb" compilation error
Appeared also on FreeBSD on a 4.6.1 version with the following message:
gnatmake -Wall -Wextra gnat_bug.adb
gnatgcc -c -Wall -Wextra gnat_bug.adb
+===========================GNAT BUG DETECTED==============================+
| 4.6.1 20110627 (release) -=> GNAT AUX [FreeBSD] (i386-aux-freebsd8.2) GCC
error:|
| in gnat_to_gnu_entity, at ada/gcc-interface/decl.c:599 |
| Error detected at gnat_bug.adb:9:30 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html. |
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box in the report. |
| Include the exact gcc or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
+==========================================================================+
Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).
gnat_bug.adb
chords.ads
namedstructures.ads
notes.ads
intervals.ads
gnat_bug.adb:9:04: warning: "Failling_Chord" is not modified, could be declared
constant
compilation abandoned
gnatmake: "gnat_bug.adb" compilation error