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