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
+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
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;
}
{
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;
}