annotate gcc/testsuite/g++.dg/concepts/memfun2.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // PR c++/72415
kono
parents:
diff changeset
2 // { dg-options "-std=c++17 -fconcepts" }
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 template<int... Indices>
kono
parents:
diff changeset
5 struct indices {};
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 template<typename Dummy>
kono
parents:
diff changeset
8 struct foo_type {
kono
parents:
diff changeset
9 template<int... Indices>
kono
parents:
diff changeset
10 static void impl(indices<Indices...>)
kono
parents:
diff changeset
11 requires (... && (Indices, true));
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 static auto caller()
kono
parents:
diff changeset
14 { return impl(indices<0, 1, 2> {}); }
kono
parents:
diff changeset
15 };
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 int main()
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 // internal compiler error: in satisfy_predicate_constraint, at cp/constraint.cc:2013
kono
parents:
diff changeset
20 foo_type<void>::caller();
kono
parents:
diff changeset
21 }