blob: 8065615bcb8374b45eacd6830572ada5e1f4a332 [file] [log] [blame]
// PR c++/29470
template <typename T> struct B
{
protected:
T v; // { dg-message "protected" }
};
template <typename T> struct D : B<T>
{
protected:
using B<T>::v;
};
int main()
{
D<int> d;
d.v = 0; // { dg-error "context" }
return 0;
}