| 1 |
// PR c++/101886 |
| 2 |
// { dg-do compile { target c++17 } } |
| 3 |
// { dg-options "-fconcepts" } |
| 4 |
|
| 5 |
template<typename...> struct A { }; |
| 6 |
|
| 7 |
A<int, int> a; |
| 8 |
A<auto, auto> b1 = a; // { dg-error "invalid|cannot convert" } |
| 9 |
A<auto, auto> b2 = a; // { dg-error "invalid|cannot convert" } |