repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
access20.C
blob
ebf575e6c30a82f9dd93c2edd2edbc6ba0578a97
1
// PR c++/29470
2
3
template <typename T> struct B
4
{
5
protected:
6
T v; // { dg-error "protected" }
7
};
8
template <typename T> struct D : B<T>
9
{
10
protected:
11
using B<T>::v;
12
};
13
int main()
14
{
15
D<int> d;
16
d.v = 0; // { dg-error "context" }
17
return 0;
18
}