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

--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> ---
extern "C" float sqrtf (float);
extern int a;
extern int b;
struct Vector {
  float i;
  float j;
  float Magnitude() const {
    return sqrtf( i*i+j*j );
  }
};
void f(){
  int i   = a;
  int end = b;
  for (; i != end; ++i) {
    float tmag = Vector().Magnitude();
  }
}

Reply via email to