diff options
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index b698386..af8bb88 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -3769,6 +3769,14 @@ build_new_op (enum tree_code code, int flags, tree arg1, tree arg2, tree arg3, } else { + /* Give any warnings we noticed during overload resolution. */ + if (cand->warnings) + { + struct candidate_warning *w; + for (w = cand->warnings; w; w = w->next) + joust (cand, w->loser, 1); + } + /* Check for comparison of different enum types. */ switch (code) { |