| 1 |
// PR c++/84330 |
| 2 |
// { dg-do compile { target c++17_only } } |
| 3 |
// { dg-options "-fconcepts" } |
| 4 |
|
| 5 |
struct A |
| 6 |
{ |
| 7 |
template<typename T> |
| 8 |
requires (sizeof(T) >> 0) // { dg-error "bool" } |
| 9 |
void foo(T); |
| 10 |
|
| 11 |
void bar() |
| 12 |
{ |
| 13 |
foo(0); // { dg-error "no matching function" } |
| 14 |
} |
| 15 |
}; |