blob: 97d7e8b36055cf656dc944ca694a5ae2e3b7e0ee [file] [log] [blame]
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++/14777
// { dg-do compile }
template <typename T>
struct B
{
protected:
typedef int M; // { dg-message "protected" }
};
template <typename T>
struct A : B<T> {
typedef typename B<char>::M N; // { dg-error "context" }
A (int = N ());
};
A<int> a = A<int> ();