This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10902: comparing doubles is not consistent in gcc 3.3 (SuSE version)
- From: Jos van den Oever <jos at vandenoever dot info>
- To: Wolfgang Bangerth <bangerth at ices dot utexas dot edu>
- Cc: gcc-bugs at gcc dot gnu dot org, <gcc-gnats at gcc dot gnu dot org>
- Date: Wed, 21 May 2003 20:35:56 +0200
- Subject: Re: c++/10902: comparing doubles is not consistent in gcc 3.3 (SuSE version)
- References: <Pine.LNX.4.44.0305210938420.9321-100000@gandalf.ices.utexas.edu>
On Wednesday 21 May 2003 16:41, Wolfgang Bangerth wrote:
> If you use
> ../gcc-3.3/configure --prefix=/some/local/path
> make bootstrap
> make install
> it will install gcc into /some/local/path, which could be a scratch
> directory in your homedir, or in /tmp. It won't overwrite any preinstalled
> files in /usr/... That's a safe way not to compromise the integrity of a
> production system. You can then run the compiler by setting PATH and
> LD_LIBRARY_PATH just for once in a shell window.
I compiled gcc thus:
../gcc-3.3/configure --prefix=/tmp/testgcc
make bootstrap; make install
export PATH=/tmp/testgcc/bin:$PATH
export LD_LIBRARY_PATH=/tmp/testgcc/lib:$LD_LIBRARY_PATH
g++ -O2 testgcc2.cpp -o testgcc2
and the bug was not present in the gcc3.3 release. Not even when run on SuSE
8.2. And the bug is also present on my old laptop, also with SuSE 8.2.
So the problem is really in SuSE's snapshot of gcc.
I guess the gcc team is off the hook. :-)
Best regards and thanks for the help!
Jos van den Oever