[Bug c++/38309] New: internal compiler error: iinternal compiler error: in write_type, at cp/mangle.c:1695n write_type, at cp/mangle.c:1695
izh1979 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 28 16:44:00 GMT 2008
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
More information about the Gcc-bugs
mailing list