This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15874] [3.5 Regression] ICE: in create_temp, at tree-outof-ssa.c:143 with -O2 (C++)
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2004 16:49:48 -0000
- Subject: [Bug tree-optimization/15874] [3.5 Regression] ICE: in create_temp, at tree-outof-ssa.c:143 with -O2 (C++)
- References: <20040608141043.15874.commie1@gmx.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-06-08 16:49 -------
Note that Serge's testcase crashes in
replace_ssa_names, at tree-ssa-copy.c:73
Here's an even shorter version of Serge's testcase:
===========================================
void foo();
struct A
{
int i;
A() : i(0) {}
~A() { if (i) foo(); }
void bar(A &a) { a.i = 1; }
};
void quus()
{
A a1, a2;
foo();
a1.bar(a1);
}
===========================================
Here's a testcase that crashes in the same spot as the
original testcase, namely in create_temp, at tree-outof-ssa.c:143
===========================================
void foo();
struct B
{
~B();
};
struct A
{
int i;
B b;
~A() { foo(); }
int bar() const { return i ? i+i : 0; }
};
int quus()
{
A a1;
foo();
while (1)
{
A a2;
if (a2.bar()) return 0;
}
}
===========================================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15874