On 03/25/2018 10:18 AM, Volker Reichelt wrote:
Index: gcc/cp/search.c =================================================================== --- gcc/cp/search.c (revision 258835) +++ gcc/cp/search.c (working copy) @@ -1918,12 +1918,14 @@ if (fail == 1) { error ("invalid covariant return type for %q+#D", overrider); - error (" overriding %q+#D", basefn); + inform (DECL_SOURCE_LOCATION (basefn), + " overriding %q+#D", basefn);
In addtion to Paolo's comments, the new inform doesn't need the indentation. Perhaps reword it to something like
"overridden function is %qD" I.e. a more stand-alone message than a continuation of the error. nathan -- Nathan Sidwell