Package: rapidjson-dev Version: 1.1.0+dfsg2-7.2 Severity: important X-Debbugs-Cc: yehudam...@gmail.com
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