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

Qt creator hangs when defining enum class in a class between its constructor and desctructor.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.6.0-rc1, Qt Creator 4.7.0, Qt Creator 4.8.0-beta1
    • Fix Version/s: Qt Creator 4.8.0-beta1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      de975aca4f08141b1c6475e58f5cfa316fdd1350 (qt-creator/qt-creator/4.8)

      Description

      The bug is easy to reproduce.

      Defining an enum class between Foo constructor and destructor causes crash. Crash happens at the moment when you hit space after enum class .

      ```

      class Foo

      {

      public:

         Foo() {}

         >>>>>>

         /* Define a enum class here..*/

         enum class

         <<<<<<<

         ~Foo() {}

      };

      ```

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-20952
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            kosjar Nikolai Kosjar
            Reporter:
            kadironay Kadir Önay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes