This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17127] New: -fexpensive-optimizations causes output of wrong code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]