diff --git a/unsupported/test/cxx11_tensor_reduction.cpp b/unsupported/test/cxx11_tensor_reduction.cpp index 9458f4e4e..c0d4c786f 100644 --- a/unsupported/test/cxx11_tensor_reduction.cpp +++ b/unsupported/test/cxx11_tensor_reduction.cpp @@ -225,11 +225,11 @@ static void test_simple_reductions() { Tensor ints(10); std::iota(ints.data(), ints.data() + ints.dimension(0), 0); - TensorFixedSize > all; - all = ints.all(); - VERIFY(!all()); - all = (ints >= ints.constant(0)).all(); - VERIFY(all()); + TensorFixedSize > all_; + all_ = ints.all(); + VERIFY(!all_()); + all_ = (ints >= ints.constant(0)).all(); + VERIFY(all_()); TensorFixedSize > any; any = (ints > ints.constant(10)).any();