This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: [PR fortran/60091, patch] - Misleading error messages in rank-2 pointer assignment to rank-1 target


Hi Dominique,

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 did check other compilers.  E.g. Intel and Oracle do print messages
using the 'legalese'.  But user-friendliness does count, too.)

OK for trunk?  Further comments?

Thanks,
Harald

On 03/11/19 10:22, Dominique d'Humières wrote:
> Hi Harald,
> 
> The patch looks good to me (although I did not test it), however I don’t like the standard legalese in the error messages.
> 
> IMO
> 
> R1035 bounds-spec is lower-bound-expr :
> R1036 bounds-remapping is lower-bound-expr : upper-bound-exp
> 
> should be rephrased in plain English.
> 
> Thanks for the work.
> 
> Dominique


Attachment: patch-pr60091-v2
Description: Text document

Attachment: patch-pr60091-testcases-v2
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]