You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GCC 14's -Werror=self-move detects self-move assignments. These occur in
tests that intentionally verify self-move safety of various types.
Solution: use pointer indirection to hide self-moves from compiler analysis:
auto* ptr = &obj;
obj = std::move(*ptr);
This preserves the runtime behavior (self-move) while preventing the
compile-time warning.
Applied to test files for: DynamicArray, intrusive_list, Promise,
AllocatorWrapper, TypeErasurePointer, Scope, and LockFile.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Leonardo Rossetti <lrossett@redhat.com>
0 commit comments