This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46304] g++ crashes with ICE in bitmap_first_set_bit, at bitmap.c:770
- From: "apataki at apataki dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 4 Nov 2010 21:01:50 +0000
- Subject: [Bug c++/46304] g++ crashes with ICE in bitmap_first_set_bit, at bitmap.c:770
- Auto-submitted: auto-generated
- References: <bug-46304-4@http.gcc.gnu.org/bugzilla/>
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.