From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6972 invoked by alias); 3 May 2011 16:35:16 -0000 Received: (qmail 6897 invoked by uid 22791); 3 May 2011 16:35:15 -0000 X-SWARE-Spam-Status: No, hits=-2.7 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; Tue, 03 May 2011 16:35:01 +0000 From: "thiago at kde dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/48856] New: Crash when compiling certain source code with C++0x X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: thiago at kde dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 03 May 2011 16:35:00 -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 X-SW-Source: 2011-05/txt/msg00215.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48856 Summary: Crash when compiling certain source code with C++0x Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: thiago@kde.org GCC crashes when compiling the attached source file in C++0x mode. Steps to Reproduce: 1. Compile the attached preprocessed source file (Copyright Nokia, LGPL 2.1) with C++0x support. That is, run: g++ -std=c++0x qxmlschema.ii This results in the following message: ==== In file included from /home/tmacieir/src/troll/qt-main/src/xmlpatterns/parser/qmaintainingreader_p.h:226:0, from /home/tmacieir/src/troll/qt-main/src/xmlpatterns/schema/qxsdschemaparsercontext_p.h:55, from /home/tmacieir/src/troll/qt-main/src/xmlpatterns/schema/qxsdschemaparser_p.h:67, from /home/tmacieir/src/troll/qt-main/src/xmlpatterns/api/qxmlschema_p.h:62, from /home/tmacieir/src/troll/qt-main/src/xmlpatterns/api/qxmlschema.cpp:43: /home/tmacieir/src/troll/qt-main/src/xmlpatterns/parser/qmaintainingreader.cpp: In member function 'QXmlStreamReader::TokenType QPatternist::MaintainingReader::readNext()': /home/tmacieir/src/troll/qt-main/src/xmlpatterns/parser/qmaintainingreader.cpp:86:57: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. ==== I have looked at Mandriva patches to GCC 4.6 and they do not seem to be related at all (nothing related to the C++ engine at all), so I believe this is a GCC issue. The compiler also crashes if I preprocess the sources without -std=c++0x but compile with it. The crash happens with the exact same messages. This crash was not present on GCC 4.5.3.