c++/4979: g++ 3.0 & 3.1 compile failes with unable to find register to spill
Reichelt
reichelt@igpm.rwth-aachen.de
Fri Dec 21 10:46:00 GMT 2001
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
More information about the Gcc-bugs
mailing list