* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / regress2.C
blob3950dbf3a26fbf100de1b47dda0c85a1d1522637
1 // PR c++/67142
2 // { dg-options -std=c++17 }
4 namespace detail {
5 template <int> int split_at;
7 struct A {
8   decltype(0) operator()();
9 };
10 template <typename> A make;
11 struct Tuple;
12 auto check =
13     [](auto, auto, auto) { [](auto... xs) { [=] { make<Tuple>(xs...); }; }(); };
14 int main() {
15   namespace vd = detail;
16   check(vd::split_at<0>, make<Tuple>, make<Tuple>);