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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
explicit-spec3.C
blob
1edc83e95a88cef29889e35721e77bbf9c903faa
1
// { dg-options "-std=c++17 -fconcepts" }
2
3
template<typename T>
4
concept bool C() { return __is_class(T); }
5
6
template<C T> struct S;
7
8
struct X { };
9
10
// Not a valid explicit specialization, int does not satisfy C.
11
template<> struct S<int> { }; // { dg-error "constraint" }
12
13
int main() { }