octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sparse + complex arithmetic inconsistency


From: Rafael Laboissiere
Subject: Re: Sparse + complex arithmetic inconsistency
Date: Sat, 31 Mar 2007 23:42:13 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

* David Bateman <address@hidden> [2007-03-31 16:55]:

> Michael reported it a few months ago, together with the issue that with
> gcc/g++ 4.1 it is optimizer flag dependent. With gcc 4.0.1 I see
> (nan,nan) as a result of all of the operations.
>
> [snip]
>
> Until GCC gets its act together on this one there isn't much we can do.
> Note that the fact that Michael reported this means that it is also a
> misfeature of MSVC...

The bug is present even in a recent version of gcc:

    $ sudo apt-get install gcc-snapshot
    $ export LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
    $ PATH=/usr/lib/gcc-snapshot/bin:$PATH
    $ gcc --version | grep ^gcc
    gcc (GCC) 4.3.0 20061022 (experimental)
    $ gcc -o foo foo.c
    $ ./foo
    (1.000000,0.000000) / (0.000000,0.000000) -> (nan,nan)
    (0.000000,1.000000) / (0.000000,0.000000) -> (nan,nan)
    (1.000000,1.000000) / (0.000000,0.000000) -> (nan,nan)

    

-- 
Rafael


reply via email to

[Prev in Thread] Current Thread [Next in Thread]