Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr32519.C
blob: a010a5695b2a1f9b051b2cc4755909646753015b [
file
] [
log
] [
blame
]
// PR 32519
// { dg-do compile }
struct
B
{
protected
:
template
<
class
T
>
void
f
();
// { dg-message "protected" }
};
struct
D
:
public
B
{
void
g
(
B
*
b
)
{
b
->
f
<int>
();
// { dg-error "context" }
}
};