A new alpha bug

H.J. Lu hjl@lucon.org
Sat Sep 13 14:44:00 GMT 1997


I think TImode handling is broken in egcs, maybe gcc. If I add
a dummy to complex_double to make TImode go away, the code
compiles/runs fine.

# gcc -O foo.cc
# a.out

-- 
H.J. Lu (hjl@gnu.ai.mit.edu)
---
class complex_double
{
public:
  complex_double (double r = 0, double i = 0): re (r), im (i) { }
  double re, im;
  int dummy;
};

main()
{
  complex_double one = 1.0;
  // complex_double one (1.0);
  if (one.re != 1.0 || one.im != 0.0)
    abort ();

  return 0;
}



More information about the Gcc mailing list