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