Commit 4fe2a1a7 by Jason Merrill Committed by Jason Merrill

re PR c++/16334 (No warning about use of overloading extension)

        PR c++/16334
        * call.c (build_new_op): Give overload warnings for built-in
        candidates.

From-SVN: r84229
parent 051822f6
2004-07-07 Jason Merrill <jason@redhat.com>
PR c++/16334
* call.c (build_new_op): Give overload warnings for built-in
candidates.
2004-07-07 H.J. Lu <hongjiu.lu@intel.com> 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
PR c++/16276 PR c++/16276
......
...@@ -3769,6 +3769,14 @@ build_new_op (enum tree_code code, int flags, tree arg1, tree arg2, tree arg3, ...@@ -3769,6 +3769,14 @@ build_new_op (enum tree_code code, int flags, tree arg1, tree arg2, tree arg3,
} }
else 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. */ /* Check for comparison of different enum types. */
switch (code) switch (code)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment