public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40840]  New: Segfault with SPU C++ compiler 4.1.1 (const member + vector array)
@ 2009-07-23 20:08 dimitrij dot kotrev at googlemail dot com
  2009-07-23 20:15 ` [Bug c++/40840] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: dimitrij dot kotrev at googlemail dot com @ 2009-07-23 20:08 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/40840] Segfault with SPU C++ compiler 4.1.1 (const member + vector array)
  2009-07-23 20:08 [Bug c++/40840] New: Segfault with SPU C++ compiler 4.1.1 (const member + vector array) dimitrij dot kotrev at googlemail dot com
@ 2009-07-23 20:15 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-07-23 20:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-07-23 20:14 -------
Fixed in 4.4.0.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-23 20:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-23 20:08 [Bug c++/40840] New: Segfault with SPU C++ compiler 4.1.1 (const member + vector array) dimitrij dot kotrev at googlemail dot com
2009-07-23 20:15 ` [Bug c++/40840] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).