Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-7219

Crashes if decltype is typed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.5.0-beta
    • C/C++/Obj-C++ Support
    • None

    Description

      QtCreator crashes if I type "decltype()" in the source code editor. Below id the callstack of the crash.

      #0 0x00007f968ec2243a in CPlusPlus::Parser::parseSimpleDeclaration(CPlusPlus::DeclarationAST*&, CPlusPlus::ClassSpecifierAST*) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #1 0x00007f968ec233f7 in CPlusPlus::Parser::parseDeclarationStatement(CPlusPlus::StatementAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #2 0x00007f968ec26f33 in CPlusPlus::Parser::parseExpressionOrDeclarationStatement(CPlusPlus::StatementAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #3 0x00007f968ec23953 in CPlusPlus::Parser::parseCompoundStatement(CPlusPlus::StatementAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #4 0x00007f968ec2db17 in CPlusPlus::Parser::parseFunctionBody(CPlusPlus::StatementAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #5 0x00007f968ec22673 in CPlusPlus::Parser::parseSimpleDeclaration(CPlusPlus::DeclarationAST*&, CPlusPlus::ClassSpecifierAST*) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #6 0x00007f968ec216c9 in CPlusPlus::Parser::parseDeclaration(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #7 0x00007f968ec21abf in CPlusPlus::Parser::parseTemplateDeclaration(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #8 0x00007f968ec21723 in CPlusPlus::Parser::parseDeclaration(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #9 0x00007f968ec2f4f8 in CPlusPlus::Parser::parseLinkageBody(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #10 0x00007f968ec215b4 in CPlusPlus::Parser::parseNamespace(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #11 0x00007f968ec216fb in CPlusPlus::Parser::parseDeclaration(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #12 0x00007f968ec2f4f8 in CPlusPlus::Parser::parseLinkageBody(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #13 0x00007f968ec215b4 in CPlusPlus::Parser::parseNamespace(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #14 0x00007f968ec216fb in CPlusPlus::Parser::parseDeclaration(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #15 0x00007f968ec2f4f8 in CPlusPlus::Parser::parseLinkageBody(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #16 0x00007f968ec215b4 in CPlusPlus::Parser::parseNamespace(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #17 0x00007f968ec216fb in CPlusPlus::Parser::parseDeclaration(CPlusPlus::DeclarationAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #18 0x00007f968ec2f7bb in CPlusPlus::Parser::parseTranslationUnit(CPlusPlus::TranslationUnitAST*&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #19 0x00007f968ec4260c in CPlusPlus::TranslationUnit::parse(CPlusPlus::TranslationUnit::ParseMode) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #20 0x00007f968ec4e8ba in CPlusPlus::Document::check(CPlusPlus::Document::CheckMode) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/../../libCPlusPlus.so.1
      #21 0x00007f968f16188c in CppTools::Internal::CppPreprocessor::sourceNeeded(QString&, CPlusPlus::Client::IncludeType, unsigned int) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/libCppTools.so
      #22 0x00007f968f15aa98 in CppTools::Internal::CppPreprocessor::run(QString const&) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/libCppTools.so
      #23 0x00007f968f15be87 in CppTools::Internal::CppModelManager::parse(QFutureInterface<void>&, CppTools::Internal::CppPreprocessor*, QStringList) () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/libCppTools.so
      #24 0x00007f968f16b94b in ?? () from /home/lastique/qtcreator-2.4.82/lib/qtcreator/plugins/Nokia/libCppTools.so
      #25 0x00007f969f461437 in ?? () from /home/lastique/qtcreator-2.4.82/bin/../lib/libQtCore.so.4
      #26 0x00007f969f46ee4b in ?? () from /home/lastique/qtcreator-2.4.82/bin/../lib/libQtCore.so.4
      #27 0x00007f969f1bcf05 in start_thread () from /lib64/libpthread.so.0
      #28 0x00007f969e78910d in clone () from /lib64/libc.so.6

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rlohning Robert Löhning
              lastique Andrey Semashev
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes