diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h index 2a3398d67..0e9133c49 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h @@ -279,7 +279,7 @@ struct tuple_coeff<0, ValueT> { } template EIGEN_DEVICE_FUNC static constexpr bool value_known_statically(const Index i, const IndexTuple&) { - return is_compile_time_constant::ValType>::value & (i == 0); + return is_compile_time_constant::ValType>::value && (i == 0); } template