Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 5.0.1
-
None
-
Debian Bullseye
-
-
6dd66e012b49f634541457aafffc2367e91d95e7 (qt-creator/qt-creator/6.0)
Description
Is this related to QTCREATORBUG-26043? No idea.
I have this ugly habit where I just keep right-clicking when I'm thinking... and I started noticing that QtCreator is crashing at times when I right-click. Then I tried to find out where it crashes, and it then turns out it's crashing when I right-click in the scope of a switch statement. Literally.
Here's a screenshot of where I can reliably reproduce this (I tried to upload this here, but it won't work... it keeps saying token missing):
If I click inside a loop, all good. If I right click in the scope of the switch, it crashes.
EDIT: If the switch statement is NOT in a member function, it won't crash.
Attachments
For Gerrit Dashboard: QTCREATORBUG-26316 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
376577,2 | CppEditor: Fix possible crash in CompleteSwitchCaseStatement | 6.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |