zug: fix build with GCC 15 (#472457)

This commit is contained in:
dotlambda
2025-12-20 10:53:22 +00:00
committed by GitHub
2 changed files with 18 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
diff --git a/zug/sequence.hpp b/zug/sequence.hpp
index d7ac093..bffb771 100644
--- a/zug/sequence.hpp
+++ b/zug/sequence.hpp
@@ -76,8 +76,9 @@ struct sequence_data
sequence_data& operator=(sequence_data&& other)
{
- impl_ = std::move(other.impl);
+ impl_ = std::move(other.impl_);
impl_.reductor.current(this);
+ return *this;
}
sequence_data& operator=(const sequence_data& other)
+3
View File
@@ -24,6 +24,9 @@ stdenv.mkDerivation (finalAttrs: {
url = "https://github.com/arximboldi/zug/commit/c8c74ada30d931e40636c13763b892f20d3ce1ae.patch";
hash = "sha256-0x+ScRnziBeyHWYJowcVb2zahkcK2qKrMVVk2twhtHA=";
})
# https://github.com/arximboldi/zug/issues/45
./gcc15.patch
];
nativeBuildInputs = [ cmake ];