A new alpha bug
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Fri Sep 12 19:59:00 GMT 1997
> From: hjl@lucon.org (H.J. Lu)
> Subject: A new alpha bug
>
> Using egcs 970910 configured for linux/alpha, this code failed
> to run on alpha with any optimization:
>
> # gcc foo.cc
> # a.out
> # gcc -O foo.cc
> # a.out
> Floating point exception (core dumped)
>
> gcc 2.7.2.1 for linux/alpha is fine.
> --
> 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;
> };
>
> main()
> {
> complex_double one = 1.0;
> if (one.re != 1.0 || one.im != 0.0)
> abort ();
>
> return 0;
> }
FWIW, egcs-2.90.07 970910 had the same failure on alpha-dec-osf4.0.
--Kaveh
--
Kaveh R. Ghazi Project Manager
ghazi@caip.rutgers.edu ICon CMT Corp.
More information about the Gcc
mailing list