public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bli at cs dot wisc.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
Date: Sat, 10 Mar 2012 21:43:00 -0000	[thread overview]
Message-ID: <bug-52464-4-VUn8qgJjg4@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <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.


  parent reply	other threads:[~2012-03-10 21:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02 18:53 [Bug c++/52464] New: " bli at cs dot wisc.edu
2012-03-02 19:01 ` [Bug c++/52464] " bli at cs dot wisc.edu
2012-03-03  0:33 ` paolo.carlini at oracle dot com
2012-03-03  0:34 ` paolo.carlini at oracle dot com
2012-03-10 20:57 ` bli at cs dot wisc.edu
2012-03-10 21:02 ` bli at cs dot wisc.edu
2012-03-10 21:12 ` redi at gcc dot gnu.org
2012-03-10 21:43 ` bli at cs dot wisc.edu [this message]
2013-08-11 21:56 ` paolo.carlini at oracle dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-52464-4-VUn8qgJjg4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).