[gcc r12-6264] libstdc++: Fix std::error_code pretty printer for versioned namespace
Jonathan Wakely
redi@gcc.gnu.org
Wed Jan 5 15:29:38 GMT 2022
https://gcc.gnu.org/g:1918067e2d0d79ccaf1e4ed98096060fc235e772
commit r12-6264-g1918067e2d0d79ccaf1e4ed98096060fc235e772
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Jan 5 14:06:43 2022 +0000
libstdc++: Fix std::error_code pretty printer for versioned namespace
libstdc++-v3/ChangeLog:
* python/libstdcxx/v6/printers.py (StdErrorCodePrinter): Strip
versioned namespace from the type name that is printed.
Diff:
---
libstdc++-v3/python/libstdcxx/v6/printers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 44f1148d5ab..b3f4956381b 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -1522,7 +1522,7 @@ class StdErrorCodePrinter:
def __init__ (self, typename, val):
self.val = val
- self.typename = typename
+ self.typename = strip_versioned_namespace(typename)
# Do this only once ...
if StdErrorCodePrinter._errno_categories is None:
StdErrorCodePrinter._errno_categories = ['generic']
More information about the Libstdc++-cvs
mailing list