Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic172.C
blob: d25d3029a9d7b8de963ed216f8c89c3798da445e [
file
] [
log
] [
blame
]
// PR c++/84454
// { dg-do compile { target c++11 } }
template
<
class
F
,
class
...
A
>
void
g
(
F
&&,
A
&&...)
{}
template
<
class
...
A
>
auto
h
(
A
&&...
a
)
->
decltype
(
g
(
0
,
g
<
decltype
(
a
)>(
a
)...))
{
g
(
a
...);
// { dg-error "no match" }
}
int
main
()
{
h
();
}