repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic100.C
blob
502601f87415b23d43f0dea0c34463ba7310b93a
1
// PR c++/43143
2
// { dg-do compile { target c++11 } }
3
4
template<typename T>
5
T&& declval();
6
7
template<class T, class... Args>
8
void test() {
9
T t(declval<Args>()...);
10
}
11
12
int main() {
13
test<const int>(); // OK
14
test<int[23]>(); // Error
15
}