]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/concepts/memfun2.C
invoke.texi: Document -std=c++17 and -std=gnu++17 and document c++1z and gnu++1z...
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / concepts / memfun2.C
CommitLineData
b9dc9ef6 1// PR c++/72415
7b936140 2// { dg-options "-std=c++17 -fconcepts" }
b9dc9ef6
JM
3
4template<int... Indices>
5struct indices {};
6
7template<typename Dummy>
8struct foo_type {
9 template<int... Indices>
10 static void impl(indices<Indices...>)
11 requires (... && (Indices, true));
12
13 static auto caller()
14 { return impl(indices<0, 1, 2> {}); }
15};
16
17int main()
18{
19 // internal compiler error: in satisfy_predicate_constraint, at cp/constraint.cc:2013
20 foo_type<void>::caller();
21}