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

Clang: Crash in CodeCompleteConstructorInitializer for invalid code when doing completion

    XMLWordPrintable

Details

    Description

      When having clang code model enabled for C++, simple code snippet will crash Creator:

      class Foo
      {
      public:
          template <size_t size>
          Foo(char (&target)[size])
              : _target(target), _size
      //       to crash, type '('here ^
          { }
      
          char * _target{nullptr};
          std::size_t _size{0};
      };
      

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            greenscape Paul
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes