Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lslusarczyk opened this issue Jul 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lslusarczyk
Copy link
Contributor

/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)
      |
@lslusarczyk lslusarczyk added the bug Something isn't working label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant