This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4934: Seg fault on legal code
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, anthwil at nortelnetworks dot com, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Fri, 21 Dec 2001 19:06:39 +0100
- Subject: Re: c++/4934: Seg fault on legal code
Hi,
the offending code can be reduced to
template<unsigned> struct A {};
template<typename T> struct B { A<sizeof(+int())> a; };
These two lines will crash gcc 3.0.x and gcc 3.1 20011210
on i686-pc-linux-gnu and mips-sgi-irix6.5.
Just compile with "g++ -c".
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4934