This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi all, as noted on IRC is one of the error message in check.c co_reduce misleading. The attached patch fixes this. The intention of the error message is to tell that the type of the argument bound to parameter A is of wrong type and not that an unspecific argument has a wrong type. If no one objects within 24 h I am planning to commit this patch as obvious to trunk gcc-7. Bootstrapped and regtested on x86_64-linux-gnu/f25. Regards, Andre -- Andre Vehreschild * Email: vehre ad gmx dot de
Attachment:
co_reduce_error_msg_fix.clog
Description: Text document
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c index 681950e..759c15a 100644 --- a/gcc/fortran/check.c +++ b/gcc/fortran/check.c @@ -1731,7 +1731,7 @@ gfc_check_co_reduce (gfc_expr *a, gfc_expr *op, gfc_expr *result_image, if (!gfc_compare_types (&a->ts, &sym->result->ts)) { - gfc_error ("A argument at %L has type %s but the function passed as " + gfc_error ("The A argument at %L has type %s but the function passed as " "OPERATOR at %L returns %s", &a->where, gfc_typename (&a->ts), &op->where, gfc_typename (&sym->result->ts));
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |