Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
virtual4.C
blob: a2c7420b402e7ec6c648668e88ebbd16ab42058c [
file
] [
log
] [
blame
]
// PR c++/56243
struct
A
{
virtual
int
String
();
};
struct
F
:
A
{
};
struct
G
{
F value
;
};
struct
D
{
template
<int>
void
Verify
()
{
G x
;
F
&
name
=
x
.
value
;
name
.
String
();
}
};
int
main
()
{
D d
;
d
.
Verify
<
42
>();
}