| 1 |
// { dg-do compile { target c++17 } } |
| 2 |
// { dg-options "-fconcepts" } |
| 3 |
|
| 4 |
template <int I> struct B { static const int i = I; }; |
| 5 |
template <int I> concept Few = I < 10; |
| 6 |
|
| 7 |
constexpr int g(B<Few> b); // { dg-error "does not constrain a type|invalid" } |
| 8 |
|