]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Fix templated convertion operator demangling
authorNathan Sidwell <nathan@acm.org>
Mon, 12 Jun 2023 23:37:04 +0000 (19:37 -0400)
committerNathan Sidwell <nathan@acm.org>
Tue, 13 Jun 2023 21:07:01 +0000 (17:07 -0400)
commit5a897036187468d4ded330b90b2abdaff5061ed6
tree9fdcae0a2ea04f97a0bc03c27ace3132fa84657c
parenta54c71ccc24874ce79019b51150b3a00b7c785cd
c++: Fix templated convertion operator demangling

Instantiations of templated conversion operators failed to demangle
for cases such as 'operator X<int>', but worked for 'operator X<int>
&', due to thinking the template instantiation of X was the
instantiation of the conversion operator itself.

libiberty/
* cp-demangle.c (d_print_conversion): Remove incorrect
template instantiation handling.
* testsuite/demangle-expected: Add testcases.
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected