repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-surrogate1.C
blob
e8481a316568611be7b207b0e97e319e7c1515c7
1
// PR c++/110535
2
// { dg-do compile { target c++20 } }
3
4
using F = int(int);
5
6
template<bool B>
7
struct A {
8
operator F*() requires B;
9
};
10
11
int i = A<true>{}(0); // OK
12
int j = A<false>{}(0); // { dg-error "no match" }