Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
inherit4.C
blob: 511c9e6050a1650c396bc32ffcdca0622f9d30b4 [
file
] [
log
] [
blame
]
// PR c++/21008, DR 515
struct
A
{
int
foo_
;
};
template
<
typename
T
>
struct
B
:
public
A
{
};
template
<
typename
T
>
struct
C
:
B
<
T
>
{
int
foo
()
{
return
A
::
foo_
;
// #1
}
};
int
f
(
C
<int>
*
p
)
{
return
p
->
foo
();
}