optimization/4238
Reichelt
reichelt@igpm.rwth-aachen.de
Wed Sep 5 11:44:00 GMT 2001
Hi,
a smaller test case for this bug is the following piece of code:
template<class T> struct A
{
void f()
{
struct B { B(int){} };
B b(0);
}
};
void g()
{
A<void> a;
a.f();
}
It crashes gcc 3.0 on a LINUX box as well as gcc 3.0 and the 20010903
snapshot of gcc 3.0.2 (prerelease) on an IRIX box.
And you only need -O to get the crash. ;-)
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4238&database=gcc
More information about the Gcc-bugs
mailing list