Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
access20.C
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
;
}