Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
();
}