This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
- From: "bli at cs dot wisc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 10 Mar 2012 21:43:05 +0000
- Subject: [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
- Auto-submitted: auto-generated
- References: <bug-52464-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464
--- Comment #6 from bli at cs dot wisc.edu 2012-03-10 21:43:05 UTC ---
Created attachment 26875
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26875
The attachment is the preprocessed file (*.i*)
Sorry for not reading the rules carefully. The .ii file is attached.
GCC version 4.5.3
System: cygwin, this bug also occurs in Linux
Options and command line:
g++ -save-temps -Wall -O3 -ffast-math -c -I. parseIt.cpp
Compiler Output:
In file included from parseIt.cpp:9:0:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/fstream: In constructor
âstd::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*,
std::ios_base::openmode) [with _CharT = char, _Traits = std::char_traits<char>,
std::ios_base::openmode = std::_Ios_Openmode]â:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/fstream:701:4: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.