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

Crash when right clicking on switch statement

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.4.2, Qt Creator 3.5.0-beta1, Qt Creator 3.5.0-rc1, Qt Creator 3.5.0
    • Fix Version/s: Qt Creator 3.5.0
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Window 7 x64
    • Commits:
      45778539d8424a8556ce074020b992a248d6455f

      Description

      When right clicking on a switch statement with an empty case in its body Qt Creator will crash. The below code demonstrates this:

      void test(Qt::Orientation o)
      {
          switch (o)
          {
          case 
          }
      }
      

      Right clicking on switch with the above code will always reproduce the crash. I can reproduce this in 3.4.2 and 3.5.0 beta 1

      I have generated a stack trace of the crash from a local build of 3.4.2 which is attached.

        Attachments

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

          Activity

            People

            Assignee:
            kosjar Nikolai Kosjar
            Reporter:
            sjdowling Samuel Dowling
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes