delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/01/19:33:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4A9DAED9.2090908@alice.it>
Date: Wed, 02 Sep 2009 01:31:37 +0200
From: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: std::arg() bug : not repetitive ?
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Dave Korn wrote:
> IIUC this is basically fixed in GCC
> HEAD now and 4.5.0 shouldn't suffer the same problem.

Just for completeness...

With 4.5-20090827 snapshot, it does:

$ g++-4.5 arg_bug.cpp -o0 -o arg_bug

$ ./arg_bug.exe
0.785398
0.785398
1
-3.06287e-17

being (on 1.7):

$ g++-4.5 -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /tmp/gcc-4.5-20090827/configure 
--prefix=/usr/local/gfortran --exec-prefix=/usr/local/gfortran 
--sysconfdir=/usr/local/gfortran/etc --libdir=/usr/local/gfortran/lib 
--libexecdir=/usr/local/gfortran/lib 
--mandir=/usr/local/gfortran/share/man 
--infodir=/usr/local/gfortran/share/info --program-suffix=-4.5 
--enable-bootstrap --enable-checking=release --enable-decimal-float=bid 
--enable-languages=c,c++,fortran --enable-libgomp --enable-libssp 
--enable-nls --enable-threads=posix 
--enable-version-specific-runtime-libs --disable-fixed-point 
--disable-libmudflap --disable-shared --disable-sjlj-exceptions 
--disable-win32-registry --with-arch=i686 --with-dwarf2 
--with-system-zlib --with-tune=generic --without-included-gettext 
--without-x
Thread model: posix
gcc version 4.5.0 20090827 (experimental) (GCC)


Cheers,
Angelo.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019