Commit 6d61c698 by Ian Lance Taylor

Don't crash on erroneous type descriptor in interface conversion.

From-SVN: r170429
parent 8c88f9c9
...@@ -362,6 +362,8 @@ Expression::convert_type_to_interface(Translate_context* context, ...@@ -362,6 +362,8 @@ Expression::convert_type_to_interface(Translate_context* context,
first_field_value = fold_convert_loc(location, const_ptr_type_node, first_field_value = fold_convert_loc(location, const_ptr_type_node,
method_table); method_table);
} }
if (first_field_value == error_mark_node)
return error_mark_node;
// Start building a constructor for the value we will return. // Start building a constructor for the value we will return.
......
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