Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.11.1
-
Not relevant
Description
The code
int main() { int msize = 4; float arr[msize]; [&arr]{}; return 0; }
leads to the clang backend to abort. More exactly, the syntax highlighting gets corrupted, variables can't be looked up by crtl+click, and the following message shows up ~3 times every second:
2020-03-14T23:27:35 Clang Code Model: Error: The clangbackend process has finished unexpectedly and was restarted.
It's limited to VLA: Capturing a "normal" array works fine.
Note: VLAs are not part of the C++ standard. But as VLAs are perfectly supported in QtCreator, I think their captures should also be.