Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
inherit6.C
blob: 4f070984ed9ff7dde16cd73f0ce191b4ba5c0419 [
file
] [
log
] [
blame
]
// Origin PR c++/47172
// { dg-do compile { target c++11 } }
struct
A
{
int
f
()
const
;
};
template
<
class
T
>
struct
B
:
A
{
};
template
<
class
T
>
struct
C
:
B
<
T
>
{
void
g
();
};
template
<
class
T
>
void
C
<
T
>::
g
()
{
A
::
f
();
}