repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto49.C
blob
25b09dfdec1ab133f57f79b9f0573243653318aa
1
// PR c++/84350
2
// { dg-do compile { target c++11 } }
3
4
template<typename... T> void foo(T... t)
5
{
6
new auto(t...); // { dg-error "invalid use" }
7
}
8
9
void bar()
10
{
11
foo();
12
}