* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / memfun2.C
bloba5965fc869cde77b76bf76f8b5be7428b6a48cec
1 // PR c++/72415
2 // { dg-options "-std=c++17 -fconcepts" }
4 template<int... Indices>
5 struct indices {};
7 template<typename Dummy>
8 struct foo_type {
9     template<int... Indices>
10     static void impl(indices<Indices...>)
11         requires (... && (Indices, true));
13     static auto caller()
14     { return impl(indices<0, 1, 2> {}); }
17 int main()
19     // internal compiler error: in satisfy_predicate_constraint, at cp/constraint.cc:2013
20     foo_type<void>::caller();