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
/
constexpr-variadic.C
blob
495c6e2b145f01024aac2d08947246cc251e1797
1
// { dg-do compile { target c++11 } }
2
template<class... T>
3
constexpr bool variadics(T&&...) { return true; }
4
5
struct IsLiteral {};
6
7
constexpr bool variadic_var = variadics(0, true, 1.2, IsLiteral{}); // Error, so below
8
9
int main() {}