Hello!

I use GCC from OpenSUSE-11.0 distribution:
g++ (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]

And while investigating bug/feature
http://gcc.gnu.org/ml/gcc-help/2006-10/msg00128.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11407
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#115

I have fond that following code crashes g++:

--------------------

#include <stdio.h>
#include <typeinfo>

template <int N> void f () {}

int
main (void)
{
  printf ("%s\n", typeid (&f<2>));
  return 0;
}

--------------------

~> g++ test.cpp
test.cpp: In function 'int main()':
test.cpp:9: internal compiler error: in write_type, at cp/mangle.c:1695


-- 
           Summary: internal compiler error: iinternal compiler error: in
                    write_type, at cp/mangle.c:1695n write_type, at
                    cp/mangle.c:1695
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: izh1979 at gmail dot com
 GCC build triplet: g++ (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-
                    branch rev
  GCC host triplet: linux i568 OpenSUSE-11.0


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

Reply via email to