`std::stod ("nan")` returns negative NaN
Stephen John Smoogen
smooge@gmail.com
Tue Aug 14 00:46:00 GMT 2018
On Mon, 13 Aug 2018 at 19:46, Duncan Roe <duncan_roe@optusnet.com.au> wrote:
>
> On Mon, Aug 13, 2018 at 12:52:48PM -0400, Stephen John Smoogen wrote:
> > On Mon, 13 Aug 2018 at 11:16, Masamichi Hosoda <trueroad@trueroad.jp> wrote:
> [...]
> > On Fedora 27 with 7.3.1 it gives
> > ```
> > stod ("nan") = nan
> > stod ("-nan") = nan
> > quiet_NaN () = nan
> > ```
> [...]
I tested a compile on Windows Subsystem for Linux Ubuntu 18.04 which
had gcc 7.3.0. The output was the same as everything but Cygwin. At
this point it is time to pull through the gdb debugger and try to
figure out where it is coming from.
--
Stephen J Smoogen.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list