diff options
author | Jason Merrill <jason@redhat.com> | 2020-12-19 13:10:01 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-12-21 15:46:14 -0500 |
commit | 71690493322238d0fb9be776d9fceed0a7bf727e (patch) | |
tree | 2a0fe142b2b6b1321161ea991f986105117ab7a3 /libiberty/testsuite/demangle-expected | |
parent | 0e1d4b3bfe260667fb8e055ebff2b34d8a2ec253 (diff) | |
download | gcc-71690493322238d0fb9be776d9fceed0a7bf727e.zip gcc-71690493322238d0fb9be776d9fceed0a7bf727e.tar.gz gcc-71690493322238d0fb9be776d9fceed0a7bf727e.tar.bz2 |
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.
Diffstat (limited to 'libiberty/testsuite/demangle-expected')
-rw-r--r-- | libiberty/testsuite/demangle-expected | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected index 4ad9da8..6e3e671 100644 --- a/libiberty/testsuite/demangle-expected +++ b/libiberty/testsuite/demangle-expected @@ -1476,3 +1476,9 @@ void f<int>(decltype (__alignof__(int))) _Z1fIiEvDTv111__alignof__tlT_EE void f<int>(decltype (__alignof__(int{}))) + +_Z1gI1AEv1SIXadsrT_oncviEE +void g<A>(S<&A::operator int>) + +_Z1jI1AEDTcldtfp_oncvPT_EES1_ +decltype (({parm#1}.(operator A*))()) j<A>(A) |