Your message dated Wed, 12 Mar 2025 22:07:32 +0200
with message-id
<cah3s4xsbkj0mvm0xucz1dzmd-y1oe+bz3j5h5nge41x5yah...@mail.gmail.com>
and subject line Bug is Already Fixed
has caused the Debian Bug report #1100182,
regarding rapidjson-dev: fails to compile on GCC 14 and Clang 19
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1100182: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100182
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rapidjson-dev
Version: 1.1.0+dfsg2-7.2
Severity: important
X-Debbugs-Cc: [email protected]
Dear Maintainer,
When using RapidJSON in my C++ program, I got the following error message from
GCC:
/usr/include/rapidjson/document.h: In member function
‘rapidjson::GenericStringRef<CharType>&
rapidjson::GenericStringRef<CharType>::operator=(const
rapidjson::GenericStringRef<CharType>&)’:
/usr/include/rapidjson/document.h:319:82: error: assignment of read-only member
‘rapidjson::GenericStringRef<CharType>::length’
319 | GenericStringRef& operator=(const GenericStringRef& rhs) { s =
rhs.s; length = rhs.length; }
|
~~~~~~~^~~~~~~~~~~~
This issue does not occur with GCC 13 or Clang 18, but is reproducible with GCC
14 and Clang 19, regardless
of the C++ standard used, and even occurs with a minimal example that only
includes rapidjson/document.h.
The upstream GitHub repository (https://github.com/Tencent/rapidjson) has
already removed that line
(https://github.com/Tencent/rapidjson/commit/3b2441b87f99ab65f37b141a7b548ebadb607b96),
but since no official
version was released after v1.1.0 (August 2016), the latest official version
still has it, and causes the
problem with new compilers.
Despite many requests (see, for example:
https://github.com/Tencent/rapidjson/issues/2321,
https://github.com/Tencent/rapidjson/issues/2284,
https://github.com/Tencent/rapidjson/issues/2266), Tencent
has no apparent intent to release a new version of RapidJSON in the visible
future.
Therefore, I strongly suggest that the Debian rapidjson package be updated to a
more recent upstream version.
-- System Information:
Debian Release: trixie/sid
APT prefers noble-updates
APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500, 'noble'),
(100, 'noble-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 5.15.167.4-microsoft-standard-WSL2 (SMP w/12 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
rapidjson-dev depends on no packages.
rapidjson-dev recommends no packages.
Versions of packages rapidjson-dev suggests:
pn rapidjson-doc <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
The reported bug is already fixed in version 1.1.0+dfsg2-7.3 (currently
testing), by patch 0001-Removed-non-compiling-assignment-operator.-Fixed-718
<https://salsa.debian.org/debian/rapidjson/-/blob/master/debian/patches/0001-Removed-non-compiling-assignment-operator.-Fixed-718.patch>
.
--- End Message ---