This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: optimization/4238


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
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]