annotate gcc/testsuite/g++.dg/template/array11.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-do compile }
kono
parents:
diff changeset
2 // Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
kono
parents:
diff changeset
3 // PR c++/19208: Fold dependent array domains
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 template <class C> struct if_t { typedef int type; };
kono
parents:
diff changeset
6 template <class T> struct ffff { static const bool value = true; };
kono
parents:
diff changeset
7 template <class A>
kono
parents:
diff changeset
8 struct bound_member_action
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 typedef char f[ffff<A>::value ? 1 : 2];
kono
parents:
diff changeset
11 template <class CT>
kono
parents:
diff changeset
12 bound_member_action(CT i, typename if_t<f>::type g) {}
kono
parents:
diff changeset
13 };
kono
parents:
diff changeset
14 bound_member_action<int> a(0, 1);