[From nobody Sun Nov 29 13:41:07 2026
Received: (at submit) by bugs.debian.org; 7 Jul 2025 19:43:12 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-14.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,SPF_HELO_PASS,SPF_PASS
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 16; hammy, 150; neutral, 54; spammy,
 0. spammytokens: hammytokens:0.000-+--cutf8, 0.000-+--CUTF8,
 0.000-+--c.utf-8, 0.000-+--UD:C.UTF-8, 0.000-+--C.UTF-8
Return-path: &lt;f.heckenbach@fh-soft.de&gt;
Received: from mx3.gerwinski.de ([2a01:4f8:192:4405::170:59]:50683)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;f.heckenbach@fh-soft.de&gt;)
 id 1uYrk8-003hKY-2M for submit@bugs.debian.org;
 Mon, 07 Jul 2025 19:43:12 +0000
Received: from p548df7d8.dip0.t-ipconnect.de ([84.141.247.216] helo=mars)
 by m31.gerwinski.de with esmtpsa (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96)
 (envelope-from &lt;f.heckenbach@fh-soft.de&gt;) id 1uYrji-001kJi-1l
 for submit@bugs.debian.org; Mon, 07 Jul 2025 21:42:48 +0200
Received: from frank by mars with local-rmail (Exim 4.96)
 (envelope-from &lt;f.heckenbach@fh-soft.de&gt;) id 1uYrjD-00GmvX-0R
 for submit@bugs.debian.org; Mon, 07 Jul 2025 21:42:15 +0200
To: submit@bugs.debian.org
Subject: libbctoolbox-dev: cannot bind non-const lvalue reference of type
 &quot;pumpstream&amp;&quot; to an rvalue of type &quot;pumpstream&quot;
From: Frank Heckenbach &lt;f.heckenbach@fh-soft.de&gt;
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=ISO-8859-1
Message-Id: &lt;E1uYrjD-00GmvX-0R@mars&gt;
Date: Mon, 07 Jul 2025 21:42:15 +0200
Delivered-To: submit@bugs.debian.org

Package: libbctoolbox-dev
Version: 5.3.105-1
Severity: normal
Tags: patch

/usr/include/bctoolbox/logging.h: In function &quot;pumpstream&amp; operator&lt;&lt;(pumpstream&amp;&amp;, _Tp&amp;&amp;)&quot;:
/usr/include/bctoolbox/logging.h:392:16: error: cannot bind non-const lvalue reference of type &quot;pumpstream&amp;&quot; to an rvalue of type &quot;pumpstream&quot;
  392 |         return pumpStream;
      |                ^~~~~~~~~~

Patch:

--- /usr/include/bctoolbox/logging.h
+++ /usr/include/bctoolbox/logging.h
@@ -359,7 +359,7 @@
 	template &lt;typename _Tp&gt;
 	friend pumpstream &amp;operator&lt;&lt;(pumpstream &amp;__os, _Tp &amp;&amp;__x);
 	template &lt;typename _Tp&gt;
-	friend pumpstream &amp;operator&lt;&lt;(pumpstream &amp;&amp;__os, _Tp &amp;&amp;__x);
+	friend pumpstream &amp;&amp;operator&lt;&lt;(pumpstream &amp;&amp;__os, _Tp &amp;&amp;__x);
 	friend pumpstream &amp;operator&lt;&lt;(pumpstream &amp;__os, std::ostream &amp;(*pf)(std::ostream &amp;));
 
 private:
@@ -385,7 +385,7 @@
 }
 
 template &lt;typename T&gt;
-inline pumpstream &amp;operator&lt;&lt;(pumpstream &amp;&amp;pumpStream, T &amp;&amp;x) {
+inline pumpstream &amp;&amp;operator&lt;&lt;(pumpstream &amp;&amp;pumpStream, T &amp;&amp;x) {
 	if (pumpStream.mIslogLevelEnabled) {
 		pumpStream.mOstringstream &lt;&lt; std::forward&lt;T&gt;(x);
 	}

-- System Information:
Debian Release: 13.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-35-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libbctoolbox-dev depends on:
ii  libbctoolbox2  5.3.105-1

libbctoolbox-dev recommends no packages.

libbctoolbox-dev suggests no packages.

-- no debconf information
]