| 1 |
// PR c++/110809 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
|
| 4 |
template<class, double> struct A { }; |
| 5 |
|
| 6 |
template<class T> void f(A<T, 1.0>); |
| 7 |
template<class T> void f(A<T, 2.0>); |
| 8 |
|
| 9 |
int main() { |
| 10 |
f(A<int, 1.0>{}); |
| 11 |
f(A<int, 1.1>{}); // { dg-error "no match" } |
| 12 |
} |