This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4979: g++ 3.0 & 3.1 compile failes with unable to find register to spill
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, tmwg at inxservices dot com
- Date: Fri, 21 Dec 2001 18:23:29 +0100
- Subject: Re: c++/4979: g++ 3.0 & 3.1 compile failes with unable to find register to spill
Hi,
the ICE can be reproduced with the following small example:
class A
{
int i;
A& f();
};
A& A::f()
{
i/=3;
return *this;
}
Just compile the snippet with "g++ -O -fschedule-insns"
(gcc 3.0.x or 3.1 20011219 on i686-pc-linux-gnu).
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4979