diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-06-16 15:42:33 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-06-16 15:42:33 +0000 |
commit | e249fcad3aea469b27d92ba9ef435ee79fd932d4 (patch) | |
tree | 220f75501ce153151b8dfbfe055b13b82def2a43 /gcc/cp/parser.c | |
parent | 78a8b676f1bd4fb799f3696486f45adde11a32cb (diff) | |
download | gcc-e249fcad3aea469b27d92ba9ef435ee79fd932d4.zip gcc-e249fcad3aea469b27d92ba9ef435ee79fd932d4.tar.gz gcc-e249fcad3aea469b27d92ba9ef435ee79fd932d4.tar.bz2 |
cp-tree.h (build_this_parm, [...]): Add FN parm.
gcc/cp/
* cp-tree.h (build_this_parm, cp_build_parm_decl)
build_artificial_parm): Add FN parm.
* decl.c (start_cleanup_fn): Adjust.
(build_this_parm): Add FN parm, pass it through.
(grokfndecl): Adjust parm building.
* decl2.c (cp_build_parm_decl): Add FN parm, set context.
(build_artificial_parm): Add FN parm, pass through.
(maybe_retrofit_in_chrg): Adjust parm building.
(start_static_storage_duration_function): Likwise.
* lambda.c (maybe_aadd_lambda_conv_op): Likewise.
* method.c (implicitly_declare_fn): Likewise.
* parser.c (inject_this_parameter): Likewise.
libcc1/
* libcp1plugin.cc (plugin_build_decl): Adjust parm building.
(--This line, and those below, will be ignored--
M gcc/cp/parser.c
M gcc/cp/ChangeLog
M gcc/cp/decl.c
M gcc/cp/lambda.c
M gcc/cp/cp-tree.h
M gcc/cp/method.c
M gcc/cp/decl2.c
M libcc1/libcp1plugin.cc
M libcc1/ChangeLog
From-SVN: r249268
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index d02ad36..4adf9aa 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -20451,7 +20451,7 @@ inject_this_parameter (tree ctype, cp_cv_quals quals) return; } - this_parm = build_this_parm (ctype, quals); + this_parm = build_this_parm (NULL_TREE, ctype, quals); /* Clear this first to avoid shortcut in cp_build_indirect_ref. */ current_class_ptr = NULL_TREE; current_class_ref |