From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26071 invoked by alias); 10 Mar 2012 21:43:20 -0000 Received: (qmail 26060 invoked by uid 22791); 10 Mar 2012 21:43:19 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 10 Mar 2012 21:43:07 +0000 From: "bli at cs dot wisc.edu" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bli at cs dot wisc.edu X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg00795.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52464 --- 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=3D26875 The attachment is the preprocessed file (*.i*) Sorry for not reading the rules carefully. The .ii file is attached.=20 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 =E2=80=98std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::openmode) [with _CharT =3D char, _Traits =3D std::char_trait= s, std::ios_base::openmode =3D std::_Ios_Openmode]=E2=80=99: /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/fstream:701:4: internal compi= ler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions.