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
* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
var-concept2.C
blob
c71e8a40a3658c66384ef1e432510c1a3b066391
1
// { dg-options "-std=c++17 -fconcepts" }
2
3
template<typename T>
4
concept bool C1 = __is_class(T);
5
6
template<typename U>
7
requires C1<U>
8
void f1(U, U) { }
9
10
void f2(C1) {}
11
12
int main ()
13
{
14
f1(0, 0); // { dg-error "cannot call" }
15
f2(1); // { dg-error "cannot call" }
16
return 0;
17
}