llvm-project
llvm-project copied to clipboard
[Clang] Accepts invalid parameter pack not at the end of the template parameter list
template < template < typename ... X0 , class ... > class X0 > X0 < > ;
See Compiler Explorer: https://godbolt.org/z/KzxqW1axP
It is rejected by GCC, but accepted by Clang.
@llvm/issue-subscribers-clang-frontend
Author: None (YuchangSu)
`template < template < typename ... X0 , class ... > class X0 > X0 < > ;`
See Compiler Explorer: [https://godbolt.org/z/KzxqW1axP](https://godbolt.org/z/KzxqW1axP)
It is rejected by GCC, but accepted by Clang.
clang no longer accepts: https://godbolt.org/z/W1P6Y6cWK