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-conv1.C
blob
aa29acbcb1353c5289164d7f5f3ef83b01d9b8be
1
// { dg-do compile { target concepts } }
2
3
template <class T> concept False = false;
4
5
template <class T>
6
struct A
7
{
8
explicit operator bool ();
9
explicit operator bool () requires False<T>;
10
};
11
12
int main()
13
{
14
int i { A<int>() }; // { dg-error "" }
15
}