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
/
template-parm11.C
blob
73f38815fb7182d1971315e2780ec6934550aeff
1
// { dg-options "-std=c++17 -fconcepts" }
2
3
template<typename T>
4
concept bool NameProvider()
5
{
6
return requires(){
7
typename T::_name_t::template _member_t<int>;
8
};
9
}
10
11
template<NameProvider... ColSpec>
12
void getTable(const ColSpec&...)
13
{}
14
15
int f()
16
{
17
getTable(7, 'a'); // { dg-error "cannot call" }
18
};