c++/715: ICE in spill_failure upon returning undefined variable
holmen@mail.nu
holmen@mail.nu
Mon Oct 30 16:16:00 GMT 2000
>Number: 715
>Category: c++
>Synopsis: ICE in spill_failure upon returning undefined variable
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Mon Oct 30 16:16:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Thomas Holmen Jørgensen
>Release: gcc version 2.96 20000731 (Red Hat Linux 7.0)
>Organization:
>Environment:
>Description:
A bit complicated since the compiler fails to find a
register. See How-To-Repeat.
>How-To-Repeat:
class C {
int f() {return 0;}
};
class D {
C a[1];
C* g();
};
C* D::g() {
int i = 0;
while (i < 1 && a[i].f() != 1) {}
return undefined_variable;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list