https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96871

            Bug ID: 96871
           Summary: Fails to parse templated constructor in template class
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tiagomacarios at gmail dot com
  Target Milestone: ---

Both clang and MSVC compile the below fine - gcc fails.

https://godbolt.org/z/hfPdKT

#include <utility>

template <typename T>
struct S {
  template <typename... Arg>
  S<T>(Arg&&... arg);
};

<source>:6:11: error: expected ')' before '&&' token

    6 |   S<T>(Arg&&... arg);

      |       ~   ^~

      |           )

Reply via email to