aboutsummaryrefslogtreecommitdiff
path: root/libiberty/testsuite
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-12-21 15:50:02 -0500
committerJason Merrill <jason@redhat.com>2020-12-21 16:39:48 -0500
commit8cd42d3cc2461df394c718afc270574a061a6ef6 (patch)
treec7e837df7877184f7453cc3cd4a82eb7ed099609 /libiberty/testsuite
parent71690493322238d0fb9be776d9fceed0a7bf727e (diff)
downloadgcc-8cd42d3cc2461df394c718afc270574a061a6ef6.zip
gcc-8cd42d3cc2461df394c718afc270574a061a6ef6.tar.gz
gcc-8cd42d3cc2461df394c718afc270574a061a6ef6.tar.bz2
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.
Diffstat (limited to 'libiberty/testsuite')
-rw-r--r--libiberty/testsuite/demangle-expected3
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected
index 6e3e671..6789d0d 100644
--- a/libiberty/testsuite/demangle-expected
+++ b/libiberty/testsuite/demangle-expected
@@ -1482,3 +1482,6 @@ void g<A>(S<&A::operator int>)
_Z1jI1AEDTcldtfp_oncvPT_EES1_
decltype (({parm#1}.(operator A*))()) j<A>(A)
+
+_Z1fI1AEDtdtfp_srT_1xES1_
+decltype ({parm#1}.A::x) f<A>(A)