Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
fold5.C
blob: 2f8d4cafe8e955620d673658e4b9a188e477b08f [
file
] [
log
] [
blame
]
// Test that we complain about fold-expressions in C++11 and C++14.
// { dg-do compile { target { c++11 && { ! c++17 } } } }
template
<
class
...
T
>
constexpr
int
f
(
T
...
t
)
{
return
(...
+
t
);
// { dg-error "fold" }
}