blob: e8481a316568611be7b207b0e97e319e7c1515c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// PR c++/110535
// { dg-do compile { target c++20 } }
using F = int(int);
template<bool B>
struct A {
operator F*() requires B;
};
int i = A<true>{}(0); // OK
int j = A<false>{}(0); // { dg-error "no match" }
|