===================================================================
@@ -198,8 +198,9 @@ cp_convert_to_pointer (tree type, tree expr, tsubs
complain);
}
}
- error_at (loc, "cannot convert %qE from type %qT to type %qT",
- expr, intype, type);
+ if (complain & tf_error)
+ error_at (loc, "cannot convert %qE from type %qT to type %qT",
+ expr, intype, type);
return error_mark_node;
}
===================================================================
@@ -3491,7 +3491,8 @@ make_unbound_class_template (tree context, tree na
if (complain & tf_error)
{
error ("template parameters do not match template");
- error ("%q+D declared here", tmpl);
+ inform (DECL_SOURCE_LOCATION (tmpl),
+ "%qD declared here", tmpl);
}
return error_mark_node;
}