| 1 |
// RUN: %clang_cc1 -std=c++20 -pedantic-errors -verify %s |
| 2 |
|
| 3 |
template<> // expected-error {{extraneous template parameter list in template specialization}} |
| 4 |
void f(auto); |
| 5 |
|
| 6 |
template<typename> |
| 7 |
void f(auto); |
| 8 |
|
| 9 |
template<typename T> |
| 10 |
struct A { |
| 11 |
void g(auto); |
| 12 |
}; |
| 13 |
|
| 14 |
template<typename T> |
| 15 |
void A<T>::g(auto) { } |
| 16 |
|
| 17 |
template<> |
| 18 |
void A<int>::g(auto) { } |
| 19 |
|
| 20 |
template<> |
| 21 |
template<> // expected-error {{extraneous template parameter list in template specialization}} |
| 22 |
void A<long>::g(auto) { } |