[Bug c++/46304] g++ crashes with ICE in bitmap_first_set_bit, at bitmap.c:770

apataki at apataki dot net gcc-bugzilla@gcc.gnu.org
Thu Nov 4 21:01:00 GMT 2010


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

--- Comment #1 from Andras Pataki <apataki at apataki dot net> 2010-11-04 21:01:49 UTC ---
I have also tried this code on the latest gcc 4.6 snapshot (4.6-20101030) and
it also produces a crash, although with a slightly different error message:

$ /opt/gcc/4.6-20101030/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/opt/gcc/4.6-20101030/bin/g++
COLLECT_LTO_WRAPPER=/mnt/other/opt/gcc/4.6-20101030/bin/../libexec/gcc/x86_64-redhat-linux/4.6.0/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../gcc-4.6-20101030/configure --prefix=/opt/gcc/4.6-20101030
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --enable-languages=c,c++,fortran --enable-plugin
--disable-dssi --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.6.0 20101030 (experimental) (GCC) 


$ /opt/gcc/4.6-20101030/bin/g++ -c z8.cc 
z8.cc: In member function ‘void ClassA<T>::setSize() [with T = double]’:
z8.cc:26:2:   instantiated from ‘void ClassB<TCoeff, TRHS>::setSize() [with
TCoeff = double, TRHS = __complex__ double]’
z8.cc:40:15:   instantiated from here
z8.cc:12:2: internal compiler error: in tsubst_copy, at cp/pt.c:11376
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.



More information about the Gcc-bugs mailing list