[Bug c++/17127] New: -fexpensive-optimizations causes output of wrong code
silverbanana at gmx dot de
gcc-bugzilla@gcc.gnu.org
Fri Aug 20 21:32:00 GMT 2004
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
More information about the Gcc-bugs
mailing list