aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-10 13:12:57 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-10 13:12:57 +0000
commitd5a2f455e69040cec63269e12307c4c4699850d5 (patch)
tree5a3ad15efba35f76f3ecbb3841eb39bdd7ad713f /gcc/cp/pt.c
parenta529e0a697f7cbc16f4d8ea9c2dad9b4b761d96c (diff)
downloadgcc-d5a2f455e69040cec63269e12307c4c4699850d5.zip
gcc-d5a2f455e69040cec63269e12307c4c4699850d5.tar.gz
gcc-d5a2f455e69040cec63269e12307c4c4699850d5.tar.bz2
cp-tree.h (add_method, [...]): Change last arg to bool.
gcc/cp/ * cp-tree.h (add_method, clone_function_decl): Change last arg to bool. * class.c (add_method): Change third arg to bool. Adjust. (one_inheriting_sig, one_inherited_ctor): Adjust. (clone_function_decl): Change 2nd arg to bool. Adjust. (clone_constructors_and_destructors): Adjust. * lambda.c (maybe_add_lambda_conv_op): Adjust. * method.c (lazily_declare_fn): Adjust. * pt.c (tsubst_decl, instantiate_template_1): Adjust. * semantics.c (finish_member_declaration): Adjust. libcc1/ * libcp1plugin.cc (plugin_build_decl): Adjust add_method call. From-SVN: r247834
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 0a8298c..657bc06 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -12413,7 +12413,7 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain)
If it isn't, that'll be handled by
clone_constructors_and_destructors. */
if (PRIMARY_TEMPLATE_P (gen_tmpl))
- clone_function_decl (r, /*update_method_vec_p=*/0);
+ clone_function_decl (r, /*update_methods=*/false);
}
else if ((complain & tf_error) != 0
&& IDENTIFIER_OPNAME_P (DECL_NAME (r))
@@ -18205,7 +18205,7 @@ instantiate_template_1 (tree tmpl, tree orig_args, tsubst_flags_t complain)
by cloning the instantiation of the main entry point, not by
instantiating the template clones. */
if (DECL_CHAIN (gen_tmpl) && DECL_CLONED_FUNCTION_P (DECL_CHAIN (gen_tmpl)))
- clone_function_decl (fndecl, /*update_method_vec_p=*/0);
+ clone_function_decl (fndecl, /*update_methods=*/false);
if (!access_ok)
{