This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40840] New: Segfault with SPU C++ compiler 4.1.1 (const member + vector array)
- From: "dimitrij dot kotrev at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2009 20:08:23 -0000
- Subject: [Bug c++/40840] New: Segfault with SPU C++ compiler 4.1.1 (const member + vector array)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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