Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.8.0-beta1
-
None
Description
This seems to happen if Options > Text Editor > Behavior > Enable automatic indentation is enabled. I do not know if it happens on other platforms/environments at the moment.
Start a new non-Qt C++ project. I used CMake.
Have some kind of code to work with:
#include <iostream> #include <functional> void foo(std::function<void(int,int)>); int main() { }
Now type the following in main:
foo([](int i, int j){})
Your cursor should be in the {} at this point. Press enter. Crash.