public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug regression/19174] New: wrong code regression or library problem in gcc-4.0-20041226
@ 2004-12-28 13:02 andre dot maute at gmx dot de
  2004-12-28 14:29 ` [Bug regression/19174] " pinskia at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: andre dot maute at gmx dot de @ 2004-12-28 13:02 UTC (permalink / raw)
  To: gcc-bugs

consider the following code snippet 
 
-------- nan.cc ------- 
#include <iostream> 
int main() { 
        double x = 0.55555555555555558023; 
        std::cout << x << " "; 
        std::cout << x << " "; 
        std::cout << std::endl; 
        return 0; 
} 
-------- nan.cc ------- 
 
> g++-4.0-20041226 -v 
Using built-in specs. 
Configured with: ../gcc-4.0-20041226/configure --prefix=/opt/gcc-4.0-20041226 
--enable-shared --enable-languages=c,c++ --enable-threads=posix 
--enable-__cxa_atexit --enable-clocale=gnu --disable-nls 
--program-suffix=-4.0-20041226 --with-arch=pentium3 --disable-checking 
Thread model: posix 
gcc version 4.0.0 20041226 (experimental) 
 
> g++-4.0-20041226 nan.cc 
> ldd a.out 
       libstdc++.so.6 => /opt/gcc-4.0-20041226/lib/libstdc++.so.6 (0x40017000) 
       libm.so.6 => /lib/libm.so.6 (0x400fc000) 
       libgcc_s.so.1 => /opt/gcc-4.0-20041226/lib/libgcc_s.so.1 (0x4011f000) 
       libc.so.6 => /lib/libc.so.6 (0x40129000) 
       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) 
> ./a.out 
0.555556 nan 
 
well this nan shouldn't be there 
 
> g++-4.0-20041226 nan.cc -static 
 
> ./a.out 
0.555556 0.555556 
 
> g++-4.0-20041212 -v 
Reading specs from /opt/gcc-4.0-20041212/lib/gcc/i686-pc-linux-gnu/4.0.0/specs 
Configured with: ../gcc-4.0-20041212/configure --prefix=/opt/gcc-4.0-20041212 
--enable-shared --enable-languages=c,c++ --enable-threads=posix 
--enable-__cxa_atexit --enable-clocale=gnu --disable-nls 
--program-suffix=-4.0-20041212 --with-arch=pentium3 --disable-checking 
Thread model: posix 
gcc version 4.0.0 20041212 (experimental) 
 
> g++-4.0-20041212 nan.cc 
> ldd ./a.out 
       libstdc++.so.6 => /opt/gcc-4.0-20041212/lib/libstdc++.so.6 (0x40017000) 
       libm.so.6 => /lib/libm.so.6 (0x400fb000) 
       libgcc_s.so.1 => /opt/gcc-4.0-20041212/lib/libgcc_s.so.1 (0x4011e000) 
       libc.so.6 => /lib/libc.so.6 (0x40128000) 
       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) 
 
> ./a.out 
0.555556 0.555556 
 
g++-4.0-20041212 doesn't have this problem

-- 
           Summary: wrong code regression or library problem in gcc-4.0-
                    20041226
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andre dot maute at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19174


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-01-24 13:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-28 13:02 [Bug regression/19174] New: wrong code regression or library problem in gcc-4.0-20041226 andre dot maute at gmx dot de
2004-12-28 14:29 ` [Bug regression/19174] " pinskia at gcc dot gnu dot org
2004-12-28 17:21 ` andre dot maute at gmx dot de
2004-12-28 18:03 ` andre dot maute at gmx dot de
2004-12-29  0:42 ` rth at gcc dot gnu dot org
2004-12-29 11:14 ` andre dot maute at gmx dot de
2005-01-01 23:58 ` andre dot maute at gmx dot de
2005-01-02 21:06 ` andre dot maute at gmx dot de
2005-01-02 23:44 ` andre dot maute at gmx dot de
2005-01-04  0:03 ` rth at gcc dot gnu dot org
2005-01-04 17:46 ` andre dot maute at gmx dot de
2005-01-10  0:00 ` andre dot maute at gmx dot de
2005-01-17 12:28 ` andre dot maute at gmx dot de
2005-01-19 21:22 ` rth at gcc dot gnu dot org
2005-01-20  6:59 ` rth at gcc dot gnu dot org
2005-01-24 10:42 ` andre dot maute at gmx dot de
2005-01-24 13:30 ` [Bug regression/19174] [4.0 Regression] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).