From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reichelt To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: optimization/4238 Date: Wed, 05 Sep 2001 11:46:00 -0000 Message-id: <20010905184600.26395.qmail@sourceware.cygnus.com> X-SW-Source: 2001-09/msg00109.html List-Id: The following reply was made to PR optimization/4238; it has been noted by GNATS. From: Reichelt 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 struct A { void f() { struct B { B(int){} }; B b(0); } }; void g() { A 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