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

Clang backend crash for CTAD + Variadic Template

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.10.2, Qt Creator 4.11.0
    • C/C++/Obj-C++ Support
    • None
    • Windows10 + Visual 2017 + x64 + QtCreator 4.11
    • Windows

    Description

      The clang backend can't parse usage of CTAD + Variadic Template

       

      Here a simplified sample, don't know if this is still appening here

       

      template<class R = bool, class P...>
      struct C {
      
      void run() {}
      
      };
      // ok syntax hightlighting + completion
      C<bool, int, float> c0;
      
      c0.run();
      C<bool> c1;
      c1.run();
      // ok syntax hightlighting + completion
       
      // ko clang backend hangs here
      // ko no syntax hightlighting & no completion
      C c2;
      c2.run();
      // ko clang backend hangs here
      

       

       

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            phi Philippe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes