From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115406 invoked by alias); 14 Aug 2018 00:46:04 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 115217 invoked by uid 89); 14 Aug 2018 00:45:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=D*com.au, subsystem, HX-HELO:sk:mail-pg, H*r:sk:mail-pg X-HELO: mail-pg1-f178.google.com Received: from mail-pg1-f178.google.com (HELO mail-pg1-f178.google.com) (209.85.215.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Aug 2018 00:45:38 +0000 Received: by mail-pg1-f178.google.com with SMTP id r1-v6so8290583pgp.11 for ; Mon, 13 Aug 2018 17:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2NJWnzUPJKY91v/cB9vGhZs/j56F1cNq9QfNsPik1+E=; b=RdOEGtt0mgW5JkQfwjD72FM+RA8zYkNLwmHsRj/DGL71v4IWLNeaS4AhenZg9bssKD 7faJohI/NimAxUtDZI64P5nJ3GWidoZCVtFJ586yADvtM2NEVPfex8+KjLxFlif0EffM dE+82qWSyD+g9ghes7UyCSpp9YMiHViamP2RQyp9xyfxQmhvQKTKIFDBksQs2HR+rjSK Qew+uwbNJzMmYQaMIb81YV9YsEVuIejohmuj/d9WDKOkIAMFFInwea+pqI2ZHVmLqg5j 63IPiHlapwMcrXl22io2F2KdsCsRFK/ns4ad4BX/d8rhAOn3QEuKTUNM4BwZpazOoaG6 /RWQ== MIME-Version: 1.0 References: <20180814.001550.1040828527127506667.trueroad@trueroad.jp> <20180813234603.GA2310@dimstar.local.net> In-Reply-To: <20180813234603.GA2310@dimstar.local.net> From: Stephen John Smoogen Date: Tue, 14 Aug 2018 00:46:00 -0000 Message-ID: Subject: Re: `std::stod ("nan")` returns negative NaN To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00159.txt.bz2 On Mon, 13 Aug 2018 at 19:46, Duncan Roe 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 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