spu-g++ -v Using built-in specs. Target: spu Configured with: ../toolchain/gcc/configure --prefix=/opt/cell/toolchain --mandir=/opt/cell/toolchain/man --infodir=/opt/cell/toolchain/info --with-sysroot=/opt/cell/sysroot --disable-shared --disable-threads --disable-checking --with-headers --with-system-zlib --with-newlib --enable-languages=c,c++,fortran --disable-nls --enable-version-specific-runtime-libs --disable-libssp --program-prefix=spu- --target=spu Thread model: single gcc version 4.1.1
It's the compiler from IBM SDK 3.1. cat vector.cpp template<typename T> class TestClass { public: static const int d = 2; }; template<typename T> void f() { vector float x[TestClass<T>::d]; } int main() { f<float>(); return 0; } spu-g++ -Wall -o tst vector.cpp vector.cpp: In function 'void f()': vector.cpp:9: internal compiler error: Segmentation fault -- Summary: Segfault with SPU C++ compiler 4.1.1 (const member + vector array) Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dimitrij dot kotrev at googlemail dot com GCC target triplet: spu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40840