------- Comment #7 from rguenth at gcc dot gnu dot org  2010-08-07 20:39 -------
Btw, does this only happen at -O0?  If you adjust the testcase like

#include <complex>
#include <iostream>

void __attribute__((noinline))
g(std::complex<double> x)
{
  std::cout << x << std::endl;
}

void __attribute__((noinline))
f(std::complex<double> x)
{
  g (x);
  x = 1.0 / x;
  g (x);
}

int main()
{
  f(2.0);
}


-- 


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

Reply via email to