Commit bc51de9c by Paolo Carlini Committed by Paolo Carlini

cvt.c (cp_convert_to_pointer): Don't call error_at if complain & tf_error is false.

2014-05-12  Paolo Carlini  <paolo.carlini@oracle.com>

	* cvt.c (cp_convert_to_pointer): Don't call error_at if
	complain & tf_error is false.

	* decl.c (make_unbound_class_template): Prefer inform for
	"declared here"-type message.

From-SVN: r210326
parent 079f1420
2014-05-12 Paolo Carlini <paolo.carlini@oracle.com>
* cvt.c (cp_convert_to_pointer): Don't call error_at if
complain & tf_error is false.
* decl.c (make_unbound_class_template): Prefer inform for
"declared here"-type message.
2014-05-09 Momchil Velikov <momchil.velikov@gmail.com>
PR c++/60463
......
......@@ -198,8 +198,9 @@ cp_convert_to_pointer (tree type, tree expr, tsubst_flags_t complain)
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;
}
......
......@@ -3490,8 +3490,9 @@ make_unbound_class_template (tree context, tree name, tree parm_list,
{
if (complain & tf_error)
{
error ("template parameters do not match template");
error ("%q+D declared here", tmpl);
error ("template parameters do not match template %qD", tmpl);
inform (DECL_SOURCE_LOCATION (tmpl),
"%qD declared here", tmpl);
}
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