Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic159.C
blob: 2b14d3005f01e4a316eba1ea9e36b214c97950d2 [
file
] [
log
] [
blame
]
// PR c++/61507
// { dg-do compile { target c++11 } }
struct
A
{
void
foo
(
const
int
&);
void
foo
(
float
);
};
template
<
typename
...
Args
>
void
bar
(
void
(
A
::*
memfun
)(
Args
...),
Args
...
args
);
void
go
(
const
int
&
i
)
{
bar
<
const
int
&>(&
A
::
foo
,
i
);
}