aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/mangle.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-04-04 11:45:41 -0400
committerJason Merrill <jason@redhat.com>2020-04-04 16:22:44 -0400
commit75c8d6e54a14d090853b998cfd335511b1d8ae5f (patch)
tree5928bbca79da2c1886fe3ef0588e42f9f03701ab /gcc/cp/mangle.c
parent49a86fce1a879a206fb4b27f097910005d968fda (diff)
downloadgcc-75c8d6e54a14d090853b998cfd335511b1d8ae5f.zip
gcc-75c8d6e54a14d090853b998cfd335511b1d8ae5f.tar.gz
gcc-75c8d6e54a14d090853b998cfd335511b1d8ae5f.tar.bz2
c++: Mangling of dependent conversions [PR91377]
We skip over other conversion codes when mangling expressions, we should do the same with IMPLICIT_CONV_EXPR. gcc/cp/ChangeLog 2020-04-04 Jason Merrill <jason@redhat.com> PR c++/91377 * mangle.c (write_expression): Skip IMPLICIT_CONV_EXPR.
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r--gcc/cp/mangle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index 1fc78bf..9e39cfd 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -2875,6 +2875,7 @@ write_expression (tree expr)
/* Skip NOP_EXPR and CONVERT_EXPR. They can occur when (say) a pointer
argument is converted (via qualification conversions) to another type. */
while (CONVERT_EXPR_CODE_P (code)
+ || code == IMPLICIT_CONV_EXPR
|| location_wrapper_p (expr)
/* Parentheses aren't mangled. */
|| code == PAREN_EXPR