diff options
author | Jason Merrill <jason@redhat.com> | 2010-03-03 14:01:36 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-03-03 14:01:36 -0500 |
commit | 58a15cf8ee953516f101e4320e83c3fed6bb2cd7 (patch) | |
tree | b0e6ce167e689e6afaff218c91b0bafd5549edbd /gcc/cp/method.c | |
parent | 2587aa3b3616a97fda88a87237e84577f76a096f (diff) | |
download | gcc-58a15cf8ee953516f101e4320e83c3fed6bb2cd7.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index ccc977d9df3..c25cedba178 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)); |