summaryrefslogtreecommitdiffstats
path: root/scripts/Dpkg/Shlibs/Cppfilt.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Dpkg/Shlibs/Cppfilt.pm')
-rw-r--r--scripts/Dpkg/Shlibs/Cppfilt.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Dpkg/Shlibs/Cppfilt.pm b/scripts/Dpkg/Shlibs/Cppfilt.pm
index 010fe66..e2e1a3a 100644
--- a/scripts/Dpkg/Shlibs/Cppfilt.pm
+++ b/scripts/Dpkg/Shlibs/Cppfilt.pm
@@ -101,6 +101,8 @@ sub cppfilt_demangle {
# as allowed by C++11, contrary to GNU binutils.
if ($symbol eq $demangled) {
$demangled = undef;
+ } elsif ($demangled =~ m{operator>>}) {
+ # Special case operator>> and operator>>=.
} else {
$demangled =~ s{(?<=>)(?=>)}{ }g;
}