public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "andre dot maute at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug regression/19174] New: wrong code regression or library problem in gcc-4.0-20041226
Date: Tue, 28 Dec 2004 13:02:00 -0000	[thread overview]
Message-ID: <20041228130233.19174.andre.maute@gmx.de> (raw)

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


             reply	other threads:[~2004-12-28 13:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-28 13:02 andre dot maute at gmx dot de [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041228130233.19174.andre.maute@gmx.de \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).