This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15018] New: G++ ICE on struct array element with missing opening curly brace


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]