1// Contributed by Dodji Seketeli <dodji@redhat.com> 2// Origin: PR c++/14777 3// { dg-do compile } 4 5template <typename T> 6struct B 7{ 8protected: 9 typedef int M; // { dg-error "protected" } 10}; 11 12template <typename T> 13struct A : B<T> { 14 typedef typename B<char>::M N; // { dg-error "context" } 15 A (int = N ()); 16}; 17 18A<int> a = A<int> (); 19