llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[Clang] Accepts invalid parameter pack not at the end of the template parameter list

Open YuchangSu opened this issue 2 years ago • 2 comments

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.

YuchangSu avatar Nov 04 '24 08:11 YuchangSu

@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.

llvmbot avatar Nov 04 '24 15:11 llvmbot

clang no longer accepts: https://godbolt.org/z/W1P6Y6cWK

shafik avatar Apr 16 '25 01:04 shafik