Debian Codegraph @

gcc/testsuite/g++.dg/concepts/pr67655.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-additional-options "-fconcepts" }
3
4 template<class... Xs>
5 void consume(Xs&&...) {}
6
7 template<class... Xs>
8 struct A {
9 template<class... Ys>
10 requires requires(Ys... ys) {
11 consume(Xs{ys}...);
12 }
13 A(Ys&&... ys) {
14 }
15 A(int) {}
16 };
17
18 int main() {
19 A<int, double> a(55);
20 }