aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lookup/using48.C
blob: e6dc3fab77ce5b1300ad8655cae26d9d73c6ee60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// PR c++/51190
// { dg-do compile }

struct A
{
  int i;
};

template<typename> struct B
{
  A* p;
};

template<typename T> struct C : B<T>
{
  using B<T>::p;

  C() { p->i; }

  int i1, i2, i3, i4, i5;
};

C<A> c;