http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46670
Summary: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's
<atomic> header
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 22536
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22536
Basically the pre-processed TBB <atomic> header file as included by a .cpp
It doesn't happen without the -std=c++0x flag.
Command line. Pre-processed, mostly-TBB-including file attached (it's the
open-source one, v3.0.3 I think.) It's renamed to .ii.cpp to satisfy the
content-type checker.
j...@shade:~/projects/tbb-play$ g++ -v -save-temps -std=c++0x
-I/usr/local/tbb/include provoke.cpp
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/gcc-svn/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/usr/local/gcc-svn
--disable-multilib --enable-languages=c,c++
Thread model: posix
gcc version 4.6.0 20101126 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-I'
'/usr/local/tbb/include' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/local/gcc-svn/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/cc1plus -E
-quiet -v -I /usr/local/tbb/include -D_GNU_SOURCE provoke.cpp -mtune=generic
-march=x86-64 -std=c++0x -fpch-preprocess -o provoke.ii
ignoring nonexistent directory
"/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/tbb/include
/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0
/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/x86_64-unknown-linux-gnu
/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/backward
/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/include
/usr/local/include
/usr/local/gcc-svn/include
/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/include-fixed
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-I'
'/usr/local/tbb/include' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/local/gcc-svn/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/cc1plus
-fpreprocessed provoke.ii -quiet -dumpbase provoke.cpp -mtune=generic
-march=x86-64 -auxbase provoke -std=c++0x -version -o provoke.s
GNU C++ (GCC) version 4.6.0 20101126 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.6.0 20101126 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.6.0 20101126 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.6.0 20101126 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 031a1f3491053d565cf85073149b7157
In file included from /usr/local/tbb/include/tbb/atomic.h:41:0,
from provoke.cpp:1:
/usr/local/tbb/include/tbb/tbb_machine.h: In function ‘T __TBB_ReverseBits(T)’:
/usr/local/tbb/include/tbb/tbb_machine.h:686:66: internal compiler error: in
dependent_type_p, at cp/pt.c:17928
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.