This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13970] New: internal compiler error: Segmentation fault
- From: "gianni at mariani dot ws" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2004 00:15:20 -0000
- Subject: [Bug c++/13970] New: internal compiler error: Segmentation fault
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
3.4 compiler dies on malformed input.
Reading specs from
/home/gianni/downloads/gcc/gcc-3.4-20040121-install/bin/../lib/gcc/i386-redhat-linux/3.4.0/specs
Configured with: ../gcc-3.4-20040121/configure
--prefix=/home/gianni/downloads/gcc/gcc-3.4-20040121-build/../gcc-3.4-20040121-install
--enable-shared --enable-threads=posix --disable-checking
--host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.4.0 20040121 (prerelease)
g++ -Wreturn-type -W -Wpointer-arith -pipe -ggdb3 -fcheck-new -fPIC
-D_POSIX_THREADS -D_POSIX_$
gccbug_13808.cpp:30: internal compiler error: Segmentation fault
struct X
{
struct C { int x; };
class Z { Z(int){} };
template<typename T, typename A, template<typename,typename> class C>
C<T, A> Func()
{
return C<T, A>();
}
template< typename Z > Z Zunc()
{
return Z();
}
template< typename Z > void Zinc()
{
// X::Z();
}
void tst()
{
Zunc<int>();
Zinc<int>( //);
// }
};
--
Summary: internal compiler error: Segmentation fault
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gianni at mariani dot ws
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13970