Description: Fix FTBFS with GCC 15 in template iterator members
 bm.h: bvector<>::bulk_insert_iterator copy/move assignment called
 bvect_->allocate_tempblock()/free_tempblock(), which do not exist; use the
 block manager allocator's alloc_bit_block()/free_bit_block() instead.
 bmsparsevec_compr.h: rsc_sparse_vector<>::back_insert_iterator copy
 assignment called bi.empty(), but the iterator has no empty(); delegate to
 the wrapped sparse-vector iterator's empty() (bi.sv_bi_.empty()).
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-08-31

--- bmagic-6.3.0.orig/src/bm.h
+++ bmagic-6.3.0/src/bm.h
@@ -520,7 +520,7 @@ public:
         {
             bvect_ = ii.bvect_;
             if (!buf_)
-                buf_ = bvect_->allocate_tempblock();
+                buf_ = (value_type*) bvect_->blockman_.get_allocator().alloc_bit_block();
             buf_size_ = ii.buf_size_;
             ::memcpy(buf_, ii.buf_, buf_size_ * sizeof(*buf_));
             sorted_ = ii.sorted_;
@@ -531,7 +531,7 @@ public:
         {
             bvect_ = ii.bvect_;
             if (buf_)
-                bvect_->free_tempblock(buf_);
+                bvect_->blockman_.get_allocator().free_bit_block((bm::word_t*)buf_);
             buf_ = ii.buf_; ii.buf_ = 0;
             buf_size_ = ii.buf_size_;
             sorted_ = ii.sorted_;
--- bmagic-6.3.0.orig/src/bmsparsevec_compr.h
+++ bmagic-6.3.0/src/bmsparsevec_compr.h
@@ -248,7 +248,7 @@ public:
         
         back_insert_iterator& operator=(const back_insert_iterator& bi)
         {
-            BM_ASSERT(bi.empty());
+            BM_ASSERT(bi.sv_bi_.empty());
             this->flush(); sv_bi_ = bi.sv_bi_;
             return *this;
         }
