gcc/testsuite/g++.dg/concepts/var-concept5.C
raw| 1 | // { dg-do compile { target c++17 } } |
| 2 | // { dg-options "-fconcepts" } |
| 3 | |
| 4 | template<typename T1, typename T2> |
| 5 | concept C1 = true; |
| 6 | |
| 7 | template<typename T1, typename T2, typename T3> |
| 8 | concept C2 = true; |
| 9 | |
| 10 | |
| 11 | template<C1 T> // { dg-error "wrong number of template arguments" } |
| 12 | constexpr bool f1( ) { return true; } |
| 13 | |
| 14 | template<C2<int> T> // { dg-error "wrong number of template arguments" } |
| 15 | constexpr bool f2( ) { return true; } |