c++: Fix demangling of qualified-id after '.'
authorJason Merrill <jason@redhat.com>
Mon, 21 Dec 2020 20:50:02 +0000 (15:50 -0500)
committerJason Merrill <jason@redhat.com>
Mon, 21 Dec 2020 21:39:48 +0000 (16:39 -0500)
commit8cd42d3cc2461df394c718afc270574a061a6ef6
treec7e837df7877184f7453cc3cd4a82eb7ed099609
parent71690493322238d0fb9be776d9fceed0a7bf727e
c++: Fix demangling of qualified-id after '.'

The demangler was assuming that only an unqualified-id could appear after
. or ->.

libiberty/ChangeLog:

* cp-demangle.c (d_expression_1): Recognize qualified-id
on RHS of dt/pt.
* testsuite/demangle-expected: Add test.
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected