Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / access20.C
blobebf575e6c30a82f9dd93c2edd2edbc6ba0578a97
1 // PR c++/29470
3 template <typename T> struct B
5         protected:
6         T v;                    // { dg-error "protected" }
7 };
8 template <typename T> struct D : B<T>
10         protected:
11         using B<T>::v;
13 int main()
15         D<int> d;
16         d.v = 0;                // { dg-error "context" }
17         return 0;