c++: Fix demangling of x.operator type
authorJason Merrill <jason@redhat.com>
Sat, 19 Dec 2020 18:10:01 +0000 (13:10 -0500)
committerJason Merrill <jason@redhat.com>
Mon, 21 Dec 2020 20:46:14 +0000 (15:46 -0500)
commit71690493322238d0fb9be776d9fceed0a7bf727e
tree2a0fe142b2b6b1321161ea991f986105117ab7a3
parent0e1d4b3bfe260667fb8e055ebff2b34d8a2ec253
c++: Fix demangling of x.operator type

d_operator_name decides whether "cv" indicates a cast or a conversion
operator based on is_expression.  "on" specifies that we want the conversion
operator.

libiberty/ChangeLog:

* cp-demangle.c (d_unqualified_name): Clear is_expression.
* testsuite/demangle-expected: Add tests.
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected