You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a function template that takes two template template parameters as well as a template parameter pack, Clang states that the template does not fit. This behaviour is inconsistent with the behaviour of both GCC and MSVC, both of which correctly select the template. I could not find anything in the standard that would prohibit using two template template parameters in a function template.
This always required P0522 in order to work, which up until clang-18 required the command line flag '-frelaxed-template-template-args'.
Since clang-19, the default has changed.
When creating a function template that takes two template template parameters as well as a template parameter pack, Clang states that the template does not fit. This behaviour is inconsistent with the behaviour of both GCC and MSVC, both of which correctly select the template. I could not find anything in the standard that would prohibit using two template template parameters in a function template.
Example:
Error using clang trunk:
Example in Compiler Explorer: https://godbolt.org/z/ME6qx5jWE
The same error occurs on my local machine running Clang 14.0.6.
The text was updated successfully, but these errors were encountered: