From 4540ef781bcefffe779a8b31950ea737733f06a4 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 17 Feb 2020 13:20:57 +0000 Subject: [PATCH] libstdc++: Fix regression in libstdc++-prettyprinters/cxx20.cc * python/libstdcxx/v6/printers.py (StdCmpCatPrinter.to_string): Update value for partial_ordering::unordered. --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/python/libstdcxx/v6/printers.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c966008..9ae1e11 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2020-02-17 Jonathan Wakely + * python/libstdcxx/v6/printers.py (StdCmpCatPrinter.to_string): Update + value for partial_ordering::unordered. + * include/bits/iterator_concepts.h (indirectly_copyable_storable): Add const-qualified expression variations. * include/std/concepts (copyable): Likewise. diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 7f69b0b..e4da8df 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -1435,7 +1435,7 @@ class StdCmpCatPrinter: if self.typename == 'strong_ordering' and self.val == 0: name = 'equal' else: - names = {-127:'unordered', -1:'less', 0:'equivalent', 1:'greater'} + names = {2:'unordered', -1:'less', 0:'equivalent', 1:'greater'} name = names[int(self.val)] return 'std::{}::{}'.format(self.typename, name) -- 2.7.4