diff mbox series

[pushed] c++: tweak resolve_args change

Message ID 20220701145522.908108-1-jason@redhat.com
State New
Headers show
Series [pushed] c++: tweak resolve_args change | expand

Commit Message

Jason Merrill July 1, 2022, 2:55 p.m. UTC
I don't know why I used tf_error instead of complain here.

	PR c++/105779

gcc/cp/ChangeLog:

	* call.cc (resolve_args): Use complain.
---
 gcc/cp/call.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 288c6cce0277e03e08b324283b6a015a70066bb7
diff mbox series

Patch

diff --git a/gcc/cp/call.cc b/gcc/cp/call.cc
index f1dd8377628..fc98552fda2 100644
--- a/gcc/cp/call.cc
+++ b/gcc/cp/call.cc
@@ -4675,7 +4675,7 @@  resolve_args (vec<tree, va_gc> *args, tsubst_flags_t complain)
 
       /* Force auto deduction now.  Omit tf_warning to avoid redundant
 	 deprecated warning on deprecated-14.C.  */
-      if (!mark_single_function (arg, tf_error))
+      if (!mark_single_function (arg, complain & ~tf_warning))
 	return NULL;
     }
   return args;