Open llvmbot opened 3 years ago
clang trunk accepts the following code.
template<> int func( int a, auto b ) { return a + b; } int main( ) { return func( 1, true ); }
It's not a specialization, and allows an empty template parameter list.
Sorry, meant to add, the addition of the auto parameter is when this is exhibited.
template<> int func( int, int ) { return 1; }
fails as it should.
Extended Description
clang trunk accepts the following code.
It's not a specialization, and allows an empty template parameter list.