From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8151 invoked by alias); 19 Nov 2013 09:33:45 -0000 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 Received: (qmail 8052 invoked by uid 48); 19 Nov 2013 09:33:40 -0000 From: "alessio211734 at yahoo dot it" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59187] New: internal error with -O2 Date: Tue, 19 Nov 2013 09:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alessio211734 at yahoo dot it X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg01758.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59187 Bug ID: 59187 Summary: internal error with -O2 Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alessio211734 at yahoo dot it Hi, I get a internal error when compiling with MinGw 4.8.0. I attach the preprocess file where I get the error. The flags in the makefile: CC = gcc CXX = g++ DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -D_DENTALCAD_PRO_MACRO_ -DNOMINMAX -DNDEBUG -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN CFLAGS = -O2 -Wall $(DEFINES) CXXFLAGS = -fpermissive -save-temps -O2 -frtti -fexceptions -mthreads -Wall $(DEFINES) I have compiled my code in ubuntu with gcc 4.8.1 and compile correctly in release. In windows fails with mingw 4.8.0 e mingw 4.8.1. I saw that if I use the flag -O1 compile while with -O2 I get the error.