[Bug c/46112] internal compiler error

mikpe at it dot uu.se gcc-bugzilla@gcc.gnu.org
Thu Oct 21 09:43:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46112

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2010-10-21 09:43:04 UTC ---
Confirmed on i686-pc-linux-gnu (msp430 doesn't seem to be a supported target in
upstream gcc).

> cat pr46112.c
static char e1_mylongtag[100] = {[0 ... (100 -1)]=" "};
> objdir/gcc/xgcc -Bobjdir/gcc -S pr46112.c
pr46112.c:1:1: internal compiler error: in pop_init_level, at c-typeck.c:6930
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
> objdir/gcc/xgcc -Bobjdir/gcc -v
Reading specs from objdir/gcc/specs
COLLECT_GCC=objdir/gcc/xgcc
COLLECT_LTO_WRAPPER=objdir/gcc/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /tmp/gcc-4.6-20101016/configure
--prefix=/home/mikpe/pkgs/linux-x86/gcc-4.6.0
--with-gmp=/home/mikpe/pkgs/linux-x86/gmp-4.3.2
--with-mpfr=/home/mikpe/pkgs/linux-x86/mpfr-2.4.2
--with-mpc=/home/mikpe/pkgs/linux-x86/mpc-0.8.2 --disable-plugin --disable-lto
--disable-nls --disable-shared --disable-libmudflap --enable-threads=posix
--enable-checking=release --enable-languages=c
Thread model: posix
gcc version 4.6.0 20101016 (experimental) (GCC)

ICEs every gcc from 4.6 down to 3.2.3, but 2.95.3 works.

Given the source I'm guessing this is ice-on-invalid-code.



More information about the Gcc-bugs mailing list