summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/access14.C
blob: 047f9258f2f8151dd71251ebde46eb238720023c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/14777

template <typename T>
struct B
{
protected:
  typedef int M;
};

template <typename T>
struct A : B<T> {
  typedef typename B<T>::M N;
  A (int = N ());
};

A<int> a = A<int> ();