Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

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

@lslusarczyk

Description

@lslusarczyk
/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)
      |

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions