public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48856] New: Crash when compiling certain source code with C++0x
@ 2011-05-03 16:35 thiago at kde dot org
  2011-05-03 16:36 ` [Bug c++/48856] " thiago at kde dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: thiago at kde dot org @ 2011-05-03 16:35 UTC (permalink / raw)
  To: gcc-bugs

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<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.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-11  8:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-03 16:35 [Bug c++/48856] New: Crash when compiling certain source code with C++0x thiago at kde dot org
2011-05-03 16:36 ` [Bug c++/48856] " thiago at kde dot org
2011-05-03 16:55 ` redi at gcc dot gnu.org
2011-05-03 17:18 ` redi at gcc dot gnu.org
2011-05-03 17:31 ` thiago at kde dot org
2011-05-03 17:40 ` thiago at kde dot org
2011-05-03 17:42 ` thiago at kde dot org
2011-05-03 20:16 ` redi at gcc dot gnu.org
2011-05-04 11:41 ` rguenth at gcc dot gnu.org
2011-05-11  8:55 ` thiago at kde dot org

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).