[Bug libstdc++/122821] FAIL: libstdc++-xmethods/deque.cc with -D_GLIBCXX_DEBUG
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 10 22:23:38 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122821
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:3c60015c3fda92a5ffae862c00c780ce524d02ba
commit r14-12309-g3c60015c3fda92a5ffae862c00c780ce524d02ba
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Nov 24 12:36:32 2025 +0000
libstdc++: Fix XMethods for debug mode [PR122821]
The Python GDB XMethods were not matching the debug mode containers,
because the is_specialization_of helper function matches std::(__\d::)?
and so fails to match std::__debug::deque etc.
This makes it match std::__debug:: as well as std:: and std::__8::.
Since the regex already handles the versioned namespace with (__\d::)?
we don't need to also include the _versioned_namespace variable
explicitly. This means we now match std::(__\d::|__debug::)?name<.*>
instead of matching std::(__\d::)?(__8::)?name<.*> which redundantly
included two ways to match the __8 versioned namespace.
libstdc++-v3/ChangeLog:
PR libstdc++/122821
* python/libstdcxx/v6/xmethods.py (_versioned_namespace): Remove
global variable.
(is_specialization_of): Do not use _versioned_namespace. Add
__debug:: to regex.
(cherry picked from commit ca948ee810949179aac598a14a714ec9550dd9c6)
More information about the Gcc-bugs
mailing list