public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jc at apinc dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/15833] New: Gigi abort Code=401 with Unchecked_Union in private part Date: Sat, 05 Jun 2004 14:00:00 -0000 [thread overview] Message-ID: <20040605140009.15833.jc@apinc.org> (raw) 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
next reply other threads:[~2004-06-05 14:00 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-06-05 14:00 jc at apinc dot org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040605140009.15833.jc@apinc.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).