[Bug middle-end/47566] ICE in vn_reference_lookup

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 1 15:40:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47566

--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-01 15:40:30 UTC ---
Testcase:

/* { dg-lto-do run } */
/* { dg-extra-ld-options "-O2 -ffast-math" } */

double cabs(_Complex double);
double __attribute__((used))
foo (_Complex double x, int b)
{
  if (b)
    x = 0;
  return cabs(x);
}
int main() { return 0; }



More information about the Gcc-bugs mailing list