PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / variadic1.C
blobb1b5ba5bc4437d780000f74120dbde7b908e3fe5
1 // PR c++/66712
2 // { dg-options "-std=c++17 -fconcepts" }
4 template <class T, class...Args>
5 concept bool _Constructible_ =
6   requires (Args&&...args)
7   {
8     T{ ((Args&&)(args))... };
9   };
11 template <class T, class...Args>
12 constexpr bool _constructible_() { return false; }
14 _Constructible_{T, ...Args}
15 constexpr bool _constructible_() { return true; }
17 struct S
19   S(int, char const *);
22 int main()
24   static_assert(_constructible_<S, int, char const *>(), "");