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

Issue building with gcc13 #2

Open
micwoj92 opened this issue Jan 10, 2024 · 1 comment
Open

Issue building with gcc13 #2

micwoj92 opened this issue Jan 10, 2024 · 1 comment

Comments

@micwoj92
Copy link

Hello, there is a build failure when using gcc13.

[ 58%] Building CXX object CMakeFiles/ExcaliburHashTest.dir/ExcaliburHashTest03.cpp.o
/home/micwoj92/pkg/ExcaliburHash/ExcaliburHashTest03.cpp: In member function ‘virtual void SmFlatHashMap_MoveEdgeCases_Test::TestBody()’:
/home/micwoj92/pkg/ExcaliburHash/ExcaliburHashTest03.cpp:488:16: error: moving ‘htHuge’ of type ‘Excalibur::HashTable<int, int>’ to itself [-Werror=self-move]
  488 |         htHuge = std::move(*&htHuge);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/micwoj92/pkg/ExcaliburHash/ExcaliburHashTest03.cpp:488:16: note: remove ‘std::move’ call
cc1plus: all warnings being treated as errors

This is due to this -Wself-move warning being added https://gcc.gnu.org/PR81159

@SergeyMakeev
Copy link
Owner

Hm... This test intentionally covers the move-into-itself edge case. I'm not sure what the solution here.
Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants