gcc/testsuite/g++.dg/concepts/auto3.C
raw| 1 | // { dg-do compile { target c++17 } } |
| 2 | // { dg-options "-fconcepts" } |
| 3 | |
| 4 | template <class...> class tuple {}; |
| 5 | |
| 6 | tuple<int> t; |
| 7 | tuple<auto> y = t; // { dg-error "invalid|cannot convert" } |
| 8 | |
| 9 | tuple<int,double> t2; |
| 10 | tuple<auto...> x = t2; // { dg-error "invalid|cannot convert" } |
| 11 | tuple<auto...> x2 = t; // { dg-error "invalid|cannot convert" } |
| 12 | |
| 13 | tuple<auto> y2 = t2; // { dg-error "invalid|cannot convert" } |