1// PR c++/14777
2
3template <typename T>
4struct B
5{
6protected:
7  typedef int M;
8};
9
10template <typename T>
11struct A : B<T> {
12  typedef typename B<T>::M N;
13  A (int = N ());
14};
15
16A<int> a = A<int> ();
17