This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30864] [4.3 Regression] ice for legal code with -O2
- From: "wouter dot vermaelen at pi dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2007 10:55:24 -0000
- Subject: [Bug middle-end/30864] [4.3 Regression] ice for legal code with -O2
- References: <bug-30864-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from wouter dot vermaelen at pi dot be 2007-03-19 10:55 -------
I hit the same problem. My testcase is slightly shorter, but i'm not sure it's
also actually simpler. Requires -O -finline-functions
> cat bug.ii
struct S {
S();
~S() {}
void f();
};
void f() {
int x, y;
while (x) {
x = x ? x : y;
}
}
void g() {
S s;
s.f();
}
void h() {
S s;
f();
g();
}
> g++ -O -finline-functions bug.ii
bug.ii: In function 'void h()':
bug.ii:16: internal compiler error: in alloc_aux_for_block, at cfg.c:665
--
wouter dot vermaelen at pi dot be changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wouter dot vermaelen at pi
| |dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30864