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

libFormat + auto-indent + lambda = crash

    XMLWordPrintable

Details

    • Linux/X11

    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.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            rpav Ryan Pavlik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes