[Bug c++/16133] New: gcc crash by missformed template statement

switch at cs dot tu-berlin dot de gcc-bugzilla@gcc.gnu.org
Tue Jun 22 10:00:00 GMT 2004


Hi!

in short :

igor switch (~): gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.0/specs
Configured with: ../configure --enable-languages=c,c++ --disable-nls
--with-gnu-ld --with-ld=/usr/pkg/bin/ld --with-gnu-nm
--with-nm=/usr/pkg/bin/nm --with-gnu-as --with-as=/usr/pkg/bin/as
Thread model: posix
gcc version 3.4.0

igor switch (~): uname -a
SunOS igor 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Blade-100 Solaris

igor switch (~): cat test.cpp
template class <T> T& operator<< ( T& os, int s ) {};

igor switch (~): gcc -o bla test.cpp
test.cpp:1: internal compiler error: Segmentation Fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

==========================

shure it should be "template <class T>" but the compiler shouldnt crash anyway.

regards
          Jan

-- 
           Summary: gcc crash by missformed template statement
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: switch at cs dot tu-berlin dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc solaris 9
  GCC host triplet: sparc solaris 9
GCC target triplet: sparc solaris 9


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



More information about the Gcc-bugs mailing list