Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto49.C
blob: 25b09dfdec1ab133f57f79b9f0573243653318aa [
file
] [
log
] [
blame
]
// PR c++/84350
// { dg-do compile { target c++11 } }
template
<
typename
...
T
>
void
foo
(
T
...
t
)
{
new
auto
(
t
...);
// { dg-error "invalid use" }
}
void
bar
()
{
foo
();
}