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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic121.C
blob
21121962d5154a366bb62def52833b8c8ccbe113
1
// PR c++/51507
2
// { dg-do compile { target c++11 } }
3
4
template<typename ...>
5
struct foo { typedef void type; };
6
template<typename ...Ts>
7
auto g(Ts ...ts)->
8
typename foo<decltype(ts)...>::type
9
{}
10
int main() {
11
g(42);
12
}