diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-04 05:48:40 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-04 05:48:40 +0000 |
commit | f981034647ef3d37462f217c9aec241a1ab4c799 (patch) | |
tree | 333c0a894c5337c5cbbeccc4e38db11b9ee43553 /gcc/cp/method.c | |
parent | 373743d1695da5688d26874f4a74257f6d1ddb77 (diff) | |
download | gcc-f981034647ef3d37462f217c9aec241a1ab4c799.tar.gz |
2011-07-04 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 175793 using svnmerge.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@175795 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index f10e846d0ea..9b9eb9a9df9 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1528,8 +1528,11 @@ implicitly_declare_fn (special_function_kind kind, tree type, bool const_p) /* Note that this parameter is *not* marked DECL_ARTIFICIAL; we want its type to be included in the mangled function name. */ - DECL_ARGUMENTS (fn) = cp_build_parm_decl (NULL_TREE, rhs_parm_type); - TREE_READONLY (DECL_ARGUMENTS (fn)) = 1; + tree decl = cp_build_parm_decl (NULL_TREE, rhs_parm_type); + TREE_READONLY (decl) = 1; + retrofit_lang_decl (decl); + DECL_PARM_INDEX (decl) = DECL_PARM_LEVEL (decl) = 1; + DECL_ARGUMENTS (fn) = decl; } /* Add the "this" parameter. */ this_parm = build_this_parm (fn_type, TYPE_UNQUALIFIED); |