aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-03-03 14:01:36 -0500
committerJason Merrill <jason@gcc.gnu.org>2010-03-03 14:01:36 -0500
commit58a15cf8ee953516f101e4320e83c3fed6bb2cd7 (patch)
treeb0e6ce167e689e6afaff218c91b0bafd5549edbd /gcc/cp/method.c
parent2587aa3b3616a97fda88a87237e84577f76a096f (diff)
downloadgcc-58a15cf8ee953516f101e4320e83c3fed6bb2cd7.zip
gcc-58a15cf8ee953516f101e4320e83c3fed6bb2cd7.tar.gz
gcc-58a15cf8ee953516f101e4320e83c3fed6bb2cd7.tar.bz2
re PR c++/12909 (ambiguity in mangling vector types)
PR c++/12909 * mangle.c: Include cgraph.h. (mangle_decl): If the mangled name will change in a later ABI version, make the later mangled name an alias. * method.c (make_alias_for): Copy DECL_ARGUMENTS. * Make-lang.in (mangle.o): Depend on cgraph.h. From-SVN: r157201
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index ccc977d..c25cedb 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -234,6 +234,7 @@ make_alias_for (tree function, tree newid)
DECL_TEMPLATE_INSTANTIATED (alias) = 0;
DECL_TEMPLATE_INFO (alias) = NULL;
DECL_INITIAL (alias) = error_mark_node;
+ DECL_ARGUMENTS (alias) = copy_list (DECL_ARGUMENTS (target));
TREE_ADDRESSABLE (alias) = 1;
TREE_USED (alias) = 1;
SET_DECL_ASSEMBLER_NAME (alias, DECL_NAME (alias));