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

Qt Creator crashes after invoking quick fix in some cases on Master

    XMLWordPrintable

Details

    • Linux/X11
    • 16b9539a40c4ca8b49014136a89344a1fe7537c4

    Description

      QtC crash on the Quick Fix operation invoking in some cases. For example, see code below:

      #include <iostream>
      
      using namespace std;
      
      enum class pd_role
      {
          drp,
          sink,
          source
      };
      
      namespace {
      
      pd_role s_role = pd_role::drp;
      
      void setRole(pd_role newRole)
      {
          s_role = new_role;
      }
      
      }
      
      int main()
      {
          cout << "Hello World!" << endl;
          return 0;
      }
      

      Just move cursor to the middle of the new_role at the s_role = new_role; line and press Alt+Enter:

      If I move cursor to the end of these line and also invoke Alt-Enter, all work as expected:

      OS: Manjaro Linux
      QtC: Qt Creator 11.0.0-beta1 (10.0.82) Based on Qt 6.4.3 (GCC 12.2.1 20230201, x86_64)
      Git: 9bdddd3df714bd73d4d0a08a83103b150e8fef27 / master

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          164 kB
        2. screenshot-2.png
          screenshot-2.png
          162 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            monah_tuk Alexander Drozdov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes