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

move template definition drops auto and mis-places inline

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 15.0.0-beta1
    • C/C++/Obj-C++ Support

    Description

      struct foo
      {
          template <auto Bar>
          void bar()
          {}
      };
      

      move definition gives me:

      struct foo
      {
          template <auto Bar>
          void bar();
      };
      
      inline template <Bar>
      void foo::bar()
      {
      }
      

      while it should be

      template <auto Bar>
      inline void foo::bar()
      
      • the `auto` keyword is dropped
      • the `inline` keyword is placed before template, it should be placed before the return type

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes