]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/alias-decl-8.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-8.C
CommitLineData
4b2e63de 1// { dg-do compile { target c++11 } }
28704289
DS
2
3struct A {
4 template <class U> using C = U;
5};
6
7// The particularity of the below struct is to have more than 7
8// fields. In this case, looking up a member here should exercise
9// cp/search.c:lookup_field_1 in such a way that it finds it in the
10// CLASSTYPE_SORTED_FIELDS of struct A7.
11struct A7 {
12 int f0;
13 int f1;
14 int f2;
15 int f3;
16 int f4;
17 int f5;
18 int f6;
19 int f7;
20 template <class U> using C = U;
21};
22
23template <class T>
24struct B {
25 typename T::template C<int> n; //#0
26};
27
28// These should trigger the lookup
29// of template C inside class A or
30// A7, via #0.
31B<A> b;
32B<A7> c;
This page took 4.951198 seconds and 5 git commands to generate.