[PR fortran/60091, patch] - Misleading error messages in rank-2 pointer assignment to rank-1 target
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Mar 13 00:35:00 GMT 2019
On Tue, Mar 12, 2019 at 11:19:07PM +0100, Thomas Koenig wrote:
> Hi Harald,
>
> > how about the attached version? It is quite verbose and produces
> > messages like
> >
> > Error: Expected list of 'lower-bound-expr:' or list of
> > 'lower-bound-expr:upper-bound-expr' at (1)
>
> I think this way of specifying error messages
>
> +#define BOUNDS_SPEC_LIST "list of %<lower-bound-expr:upper-bound-expr%>"
>
> ...
>
> + gfc_error ("Rank remapping requires a "
> + BOUNDS_SPEC_LIST " at %L",
> &lvalue->where);
>
> will cause trouble in translation of the error messages.
>
I agree with Thomas here. We should try to make the
translation of error message as painless as possible.
--
Steve
More information about the Fortran
mailing list