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: unassig...@gcc.gnu.org ReportedBy: thi...@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<TokenLookupClass, LookupKey>::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 <https://qa.mandriva.com/> 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.