Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
dependent-expr7.C
blob: b2468203590e23903c81866d7d76c7a31f36eab1 [
file
] [
log
] [
blame
]
// Origin PR c++/48574
// { dg-do compile }
struct
A
{
virtual
void
foo
();
};
template
<
typename
T
>
void
bar
(
T x
)
{
A
&
b
=
*
x
;
b
.
foo
();
}
void
foo
()
{
A a
;
bar
(&
a
);
}