[Bug optimization/12686] ICE (segfault) at -O on valid code
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 20 12:42:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12686
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-10-20 12:26 -------
Confirmed.
Here's a slightly reduced testcase.
====================================
#include<complex>
void foo (const double*p)
{
double x;
std::complex<double> y;
y *= x;
y *= x;
x = *p;
}
====================================
With "--enable-checking" I get the following error message:
bug.cc: In function `void foo(const double*)':
bug.cc:4: internal compiler error: tree check: expected ssa_name, have var_decl
in need_to_preserve_store, at tree-ssa-dce.c:187
Please submit a full bug report, [etc.]
I'll try to get rid of the include.
More information about the Gcc-bugs
mailing list