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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
class3.C
blob
b2757567d4f6bb3d42a711aae8ab675476209fc9
1
// { dg-options "-std=c++17 -fconcepts" }
2
3
template<typename T>
4
concept bool C() { return __is_class(T); }
5
6
// Check class redeclaration with alternative spellings.
7
template<typename T> requires C<T>() struct S;
8
template<C T> struct S { };
9
10
struct X { };
11
12
// S<X> sx;
13
14
int main() { }