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

Qt Creator crashes when typing specific code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 13.0.0
    • None
    • Linux/X11

    Description

      How to reproduce:

      Copy/paste this code into Qt Creator:

      #include <type_traits>
      template <class T, class U>
      requires(requires /* type { after this comment -> */ std::declval<T &>() = std::declval<U>())
      void f() {}
      

      Then do as the comment says and add the { at the indicated position. This causes a segmentation fault in Qt Creator.

       I have a 78MB core dump, but the file size limit does not allow it.

      Attachments

        Issue Links

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

          Activity

            People

              ansemkiv Andrii Semkiv
              toeger Toe Ger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes