public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15018] New: G++ ICE on struct array element with missing opening curly brace
@ 2004-04-20 2:45 burnscharlesn at hotmail dot com
2004-04-20 2:52 ` [Bug c++/15018] " burnscharlesn at hotmail dot com
2004-04-20 3:01 ` [Bug c++/15018] [3.3 Regression] " pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: burnscharlesn at hotmail dot com @ 2004-04-20 2:45 UTC (permalink / raw)
To: gcc-bugs
This bug has been tested to kill the following GCC versions:
GCC 3.3.2 for x86 Linux:
gcc (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
GCC 3.3.3 for amd64 Linux:
gcc (GCC) 3.3.3 20040217 (Gentoo Linux 3.3.3, propolice-3.3-7)
uname -a: Linux sivar-laptop 2.6.3-gentoo-r2 #7 Thu Mar 11 23:09:40 MST 2004
x86_64 4 GNU/Linux
Basically the same error for both Gentoo Linux systems:
crash.c:20: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccy0IsmV.out file, please attach this to
your bugreport
----------------------------------------------------------------
GCC 3.0 for HP-UX:
Configured with: ../gcc/configure --enable-languages=c,c++
--host=hppa1.1-hp-hpux11.00 --target=hppa1.1-hp-hpux11.00
--with-ld=/usr/ccs/bin/ld --with-gnu-as --enable-libstdcxx-v3
Thread model: single
gcc version 3.0
uname -a: HP-UX ux5 B.11.00 U 9000/800 618339393 unlimited-user license
Error for HP-UX:
crash.cpp:20: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
----------------------------------------------------------------
The bug does not kill GCC for Redhat x86:
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
On it, I get the following compiler error:
crash.cpp:20: sorry, not implemented: non-trivial labeled initializers
crash.cpp:21: parse error before `{'
uname -a:Linux progeny.isu.edu 2.4.25 #2 Fri Apr 9 23:55:35 MDT 2004 i686 unknown
GCC for redhat was the default binary package, so no special compiler flags were
used which cause the problem (unless used by Redhat, obviously)
Gentoo GCC's were compiled with "-march=athlon -O2 -pipe -fomit-frame-pointer"
and "-O2 -pipe -fomit-frame-pointer" respectively.
----------------------------------------------------------------
Every G++ build command I tried will crash, including simply:
g++ crash.cpp
The extended (with -v) compiler output on the x86-Linux-Gentoo system is as follows:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long
--disable-checking --enable-cstdio=stdio --enable-clocale=generic
--enable-__cxa_atexit --enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --disable-multilib
Thread model: posix
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/cc1plus -E -D__GNUG__=3 -quiet -v
-D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -D_GNU_SOURCE crash.cpp
crash.ii
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/i686-pc-linux-gnu
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/backward
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/cc1plus -fpreprocessed crash.ii -quiet
-dumpbase crash.cpp -auxbase crash -version -o crash.s
GNU C++ version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
(i686-pc-linux-gnu)
compiled by GNU C version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5,
propolice-3.3-7).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129278
crash.cpp:20: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccAd8gxF.out file, please attach this to
your bugreport
I am sure it is similar on all the other architectures, so I'm sure you'll
appreciate that I won't post them here unless someone really needs the info.
--
Summary: G++ ICE on struct array element with missing opening
curly brace
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnscharlesn at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: Several (3.x)
GCC host triplet: Several: See message
GCC target triplet: Several: See message
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15018
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/15018] G++ ICE on struct array element with missing opening curly brace
2004-04-20 2:45 [Bug c++/15018] New: G++ ICE on struct array element with missing opening curly brace burnscharlesn at hotmail dot com
@ 2004-04-20 2:52 ` burnscharlesn at hotmail dot com
2004-04-20 3:01 ` [Bug c++/15018] [3.3 Regression] " pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: burnscharlesn at hotmail dot com @ 2004-04-20 2:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From burnscharlesn at hotmail dot com 2004-04-20 02:28 -------
Created an attachment (id=6117)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6117&action=view)
This is a small test case that I put together
Note the missing on '{' line 21 of crash.ii
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15018
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/15018] [3.3 Regression] G++ ICE on struct array element with missing opening curly brace
2004-04-20 2:45 [Bug c++/15018] New: G++ ICE on struct array element with missing opening curly brace burnscharlesn at hotmail dot com
2004-04-20 2:52 ` [Bug c++/15018] " burnscharlesn at hotmail dot com
@ 2004-04-20 3:01 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-20 3:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-20 02:34 -------
Confirmed in 3.3.3 as a regression from 2.95.3, already fixed in 3.4.0 (which should be released today
or tommorrow) and the mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|Several (3.x) |
GCC host triplet|Several: See message |
GCC target triplet|Several: See message |
Keywords| |ice-on-invalid-code
Known to fail| |3.3.3
Known to work| |3.4.0 3.5.0 2.95.3
Last reconfirmed|0000-00-00 00:00:00 |2004-04-20 02:34:06
date| |
Summary|G++ ICE on struct array |[3.3 Regression] G++ ICE on
|element with missing opening|struct array element with
|curly brace |missing opening curly brace
Target Milestone|--- |3.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15018
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-20 2:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-20 2:45 [Bug c++/15018] New: G++ ICE on struct array element with missing opening curly brace burnscharlesn at hotmail dot com
2004-04-20 2:52 ` [Bug c++/15018] " burnscharlesn at hotmail dot com
2004-04-20 3:01 ` [Bug c++/15018] [3.3 Regression] " pinskia 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).