NAN assigned to class without error

Alexandre Oliva oliva@dcc.unicamp.br
Mon Jan 18 01:46:00 GMT 1999


On Jan 17, 1999, David Starner <dstarner98@aasaa.ofe.org> wrote:

> In Egcs 1.1.1, on Debian GNU/Linux 2.2 (unstable/potato), running g++
> -Wall -W TestHC.cpp produces no error for assigning the NAN to
> Hypercomplex.

Why should it?  There's a constructor that takes a single double
argument: Hypercomplex(double A, double =0, double =0, double =0)

Or do you mean some NAN other than the one returned from Invert?

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc-bugs mailing list