Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr67238.C
blob: 606a21e591bc8bd19dfc4a18c00ec7f56f25da36 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-options "-g" }
template
<
class
F
,
class
...
A
>
void
g
(
F
&&,
A
&&...)
{}
template
<
class
...
A
>
auto
h
(
A
&&...
a
)
->
decltype
(
g
(
0
,
g
<
decltype
(
a
)>(
a
)...))
{
return
g
([]{},
a
...);
}
int
main
()
{
h
();
}