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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
fold5.C
blob
2f8d4cafe8e955620d673658e4b9a188e477b08f
1
// Test that we complain about fold-expressions in C++11 and C++14.
2
// { dg-do compile { target { c++11 && { ! c++17 } } } }
3
4
template <class...T>
5
constexpr int f(T... t)
6
{
7
return (... + t); // { dg-error "fold" }
8
}