oneapi-src / distributed-ranges

Distributed ranges is a generalization of C++ ranges for distributed data structures.
46 stars 16 forks source link

EXPECT_EQ does not compile on std::span == std::span, shp, ubuntu 24.4, gcc13 #790

Open lslusarczyk opened 2 months ago

lslusarczyk commented 2 months ago
/usr/include/gtest/gtest.h:1379:11: error: invalid operands to binary expression ('const std::span<float>' and 'const std::span<float>')
 1379 |   if (lhs == rhs) {
      |       ~~~ ^  ~~~
/usr/include/gtest/gtest.h:1398:12: note: in instantiation of function template specialization 'testing::internal::CmpHelperEQ<std::span<float>, std::span<float>>' requested here
 1398 |     return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs);
      |            ^
/tmp/oneDPL/test/distributed-ranges/common/sycl_utils.cpp:36:3: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare<std::span<float>, std::span<float>, nullptr>' requested here
   36 |   EXPECT_EQ(std::span(a, size), std::span(b, size));
      |   ^
/usr/include/gtest/gtest.h:1869:54: note: expanded from macro 'EXPECT_EQ'
 1869 |   EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
      |