diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-10 20:43:09 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-10 20:43:09 +0000 |
commit | 268de039e3d8136c02e7a11e1e97a7637d7d1323 (patch) | |
tree | e6b98650467f32ad2abfacd9502177ab66583f89 /gcc/cp/call.c | |
parent | 87c7063d68a79665ff480babc7ff06e6e2e0e1f8 (diff) | |
download | gcc-268de039e3d8136c02e7a11e1e97a7637d7d1323.zip gcc-268de039e3d8136c02e7a11e1e97a7637d7d1323.tar.gz gcc-268de039e3d8136c02e7a11e1e97a7637d7d1323.tar.bz2 |
cp-tree.h (build_new_function_call): Lose koenig_p arg.
* cp-tree.h (build_new_function_call): Lose koenig_p arg. Fix
line breaking.
* call.c (build_new_function_call): Lose koenig_p arg. Remove
koenig_p handling here.
* pt.c (push_template_decl_real): Unconditionally
retrofit_lang_decl.
(tsubst_omp_clauses): Likewise.
(do_class_deduction): Adjust buld_new_function_call calls.
* semantics.c (finish_call_expr): Likewise.
From-SVN: r247860
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index dee236e..b9807cf 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -4192,7 +4192,7 @@ print_error_for_call_failure (tree fn, vec<tree, va_gc> *args, ARGS. */ tree -build_new_function_call (tree fn, vec<tree, va_gc> **args, bool koenig_p, +build_new_function_call (tree fn, vec<tree, va_gc> **args, tsubst_flags_t complain) { struct z_candidate *candidates, *cand; @@ -4210,22 +4210,6 @@ build_new_function_call (tree fn, vec<tree, va_gc> **args, bool koenig_p, if (flag_tm) tm_malloc_replacement (fn); - /* If this function was found without using argument dependent - lookup, then we want to ignore any undeclared friend - functions. */ - if (!koenig_p) - { - tree orig_fn = fn; - - fn = remove_hidden_names (fn); - if (!fn) - { - if (complain & tf_error) - print_error_for_call_failure (orig_fn, *args, NULL); - return error_mark_node; - } - } - /* Get the high-water mark for the CONVERSION_OBSTACK. */ p = conversion_obstack_alloc (0); |