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++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
req13.C
blob
2f58742c532e65e54bf553128abd540d52060fb6
1
// PR c++/66758
2
// { dg-options "-std=c++17 -fconcepts" }
3
4
template <class T, class...Args>
5
concept bool Constructible =
6
requires(Args&&...args) {
7
T{ ((Args&&)(args))... };
8
new T{((Args&&)(args))...};
9
};
10
11
template <Constructible T> struct A { };
12
A<int> a;
13