This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/4238
- To: nobody at gcc dot gnu dot org
- Subject: Re: optimization/4238
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Date: 5 Sep 2001 18:46:00 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Reichelt <reichelt at igpm dot rwth-aachen dot de>
The following reply was made to PR optimization/4238; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, artem@zavtra.ru
Cc:
Subject: Re: optimization/4238
Date: Wed, 5 Sep 2001 20:47:44 +0200
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