Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 11.0.0-beta1
-
None
-
-
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