This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17127] New: -fexpensive-optimizations causes output of wrong code
- From: "silverbanana at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2004 21:32:34 -0000
- Subject: [Bug c++/17127] New: -fexpensive-optimizations causes output of wrong code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GCC does not seem to generate the correct program for the attached program.
Amazingly it does generate the correct program if you remove the two slashes on
the marked line.
Compiled with:
g++.exe "C:\Home\Silver\Desktop\gccbug.cc" -o
"C:\Home\Silver\Desktop\gccbug.exe" -lvfw32 --save-temps -fexceptions
-fexpensive-optimizations -O2 -I"C:\Programme\Coding\MingW\include\c++\3.4.1"
-I"C:\Programme\Coding\Mingw\include\c++\3.4.1\mingw32"
-I"C:\Programme\Coding\Mingw\include\c++\3.4.1\backward"
-I"C:\Programme\Coding\Mingw\include" -L"C:\Programme\Coding\Mingw\lib"
--
Summary: -fexpensive-optimizations causes output of wrong code
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: silverbanana at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: 3.4.1
GCC host triplet: 3.4.1
GCC target triplet: 3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17127