| 1 |
// { dg-do compile { target concepts } } |
| 2 |
|
| 3 |
template <class T, class U> concept NotSame = !__is_same_as (T, U); |
| 4 |
|
| 5 |
template <class T, class X> |
| 6 |
struct A |
| 7 |
{ |
| 8 |
template <NotSame<A> U> void f(U) { } |
| 9 |
template <class U> void f(U); |
| 10 |
}; |
| 11 |
|
| 12 |
int main() |
| 13 |
{ |
| 14 |
A<int,int>().f<char>(0); |
| 15 |
} |