Commit ba76f5c5 by Nathan Sidwell Committed by Nathan Sidwell

* call.c (perform_implicit_conversion): Deal with error_mark_node.

From-SVN: r29475
parent fcc32134
1999-09-17 Nathan Sidwell <nathan@acm.org>
* call.c (perform_implicit_conversion): Deal with error_mark_node.
1999-09-17 Mark Mitchell <mark@codesourcery.com> 1999-09-17 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (poplevel_class): Declare. * cp-tree.h (poplevel_class): Declare.
......
...@@ -5130,7 +5130,8 @@ perform_implicit_conversion (type, expr) ...@@ -5130,7 +5130,8 @@ perform_implicit_conversion (type, expr)
LOOKUP_NORMAL); LOOKUP_NORMAL);
if (!conv || ICS_BAD_FLAG (conv)) if (!conv || ICS_BAD_FLAG (conv))
{ {
cp_error ("could not convert `%E' to `%T'", expr, type); if (expr != error_mark_node)
cp_error ("could not convert `%E' to `%T'", expr, type);
return error_mark_node; return error_mark_node;
} }
......
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