public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/15833] New: Gigi abort Code=401 with Unchecked_Union in private part
@ 2004-06-05 14:00 jc at apinc dot org
2004-06-05 14:02 ` [Bug ada/15833] " jc at apinc dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jc at apinc dot org @ 2004-06-05 14:00 UTC (permalink / raw)
To: gcc-bugs
I've been succesful in isolating a bug:
GCC version:
Reading specs from /usr/lib/gcc/i486-linux/3.4.0/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,
objc,ada,treelang --prefix=/usr --libexecdir=/usr/lib
--with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib
--enable-nls --enable-threads=posix --without-included-gettext
--program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk
--disable-werror i486-linux
Thread model: posix
gcc version 3.4.0 (Debian 20040516)
It is also valid for gcc 3.3.3.
The declaration of a Unchecked_Union type in the private part of a specification
make GNAT unable to compile:
$ gnatmake union.ads
gcc-3.4 -c union.ads
+===========================GNAT BUG DETECTED==============================+
| 3.4.0 (Debian 20040516) (i486-pc-linux-gnu) Gigi abort, Code=401 |
| Error detected at union.ads:20:3 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html. |
| Include the entire contents of this bug box in the report. |
| Include the exact gcc-3.4 or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
+==========================================================================+
union.ads contains:
package Union is
type A is null record;
type B is null record;
type Discriminant is (D1, D2);
type Union is private;
private
type Union(D : Discriminant := D1) is record
case D is
when D1 =>
View1 : A;
when D2 =>
View2 : B;
end case;
end record;
pragma Unchecked_Union (Union);
end Union;
Making the type union not private avoids the bug. No parameter seems to
influence in any way.
Good luck,
JC
--
Summary: Gigi abort Code=401 with Unchecked_Union in private part
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jc at apinc dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i586-pc-linux-gnu
GCC host triplet: i586-pc-linux-gnu
GCC target triplet: i586-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15833
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ada/15833] Gigi abort Code=401 with Unchecked_Union in private part
2004-06-05 14:00 [Bug ada/15833] New: Gigi abort Code=401 with Unchecked_Union in private part jc at apinc dot org
@ 2004-06-05 14:02 ` jc at apinc dot org
2004-10-12 4:03 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jc at apinc dot org @ 2004-06-05 14:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jc at apinc dot org 2004-06-05 14:02 -------
Created an attachment (id=6472)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6472&action=view)
isolated testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15833
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ada/15833] Gigi abort Code=401 with Unchecked_Union in private part
2004-06-05 14:00 [Bug ada/15833] New: Gigi abort Code=401 with Unchecked_Union in private part jc at apinc dot org
2004-06-05 14:02 ` [Bug ada/15833] " jc at apinc dot org
@ 2004-10-12 4:03 ` pinskia at gcc dot gnu dot org
2004-10-12 21:59 ` pinskia at gcc dot gnu dot org
2005-06-16 9:52 ` charlet at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-12 4:03 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15833
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ada/15833] Gigi abort Code=401 with Unchecked_Union in private part
2004-06-05 14:00 [Bug ada/15833] New: Gigi abort Code=401 with Unchecked_Union in private part jc at apinc dot org
2004-06-05 14:02 ` [Bug ada/15833] " jc at apinc dot org
2004-10-12 4:03 ` pinskia at gcc dot gnu dot org
@ 2004-10-12 21:59 ` pinskia at gcc dot gnu dot org
2005-06-16 9:52 ` charlet at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-12 21:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-12 21:59 -------
Confirmed on the mainline:
+===========================GNAT BUG
DETECTED==============================+
| 4.0.0 20041012 (experimental) (powerpc-apple-darwin7.4.1) GCC error: |
| in save_gnu_tree, at /ada/utils.c:159 |
| Error detected at union.ads:20:3 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html. |
| 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). |
+==============================================================
============+
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-12 21:59:54
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15833
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ada/15833] Gigi abort Code=401 with Unchecked_Union in private part
2004-06-05 14:00 [Bug ada/15833] New: Gigi abort Code=401 with Unchecked_Union in private part jc at apinc dot org
` (2 preceding siblings ...)
2004-10-12 21:59 ` pinskia at gcc dot gnu dot org
@ 2005-06-16 9:52 ` charlet at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: charlet at gcc dot gnu dot org @ 2005-06-16 9:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From charlet at gcc dot gnu dot org 2005-06-16 09:44 -------
Fixed on mainline by recent clean ups in the handling of Unchecked_Union.
Arno
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15833
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-06-16 9:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-05 14:00 [Bug ada/15833] New: Gigi abort Code=401 with Unchecked_Union in private part jc at apinc dot org
2004-06-05 14:02 ` [Bug ada/15833] " jc at apinc dot org
2004-10-12 4:03 ` pinskia at gcc dot gnu dot org
2004-10-12 21:59 ` pinskia at gcc dot gnu dot org
2005-06-16 9:52 ` charlet 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).