[PATCH] PR fortran/56667 -- Issue a sane error message

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Mar 5 19:09:00 GMT 2018


For the mangled code in the new testcase, gfortran issues
a somewhat obtuse error message.  The problem is the matcher
for a complex entity runs prior to the matcher for an implied
do-loop.  Errors are queued in that order so an error messagei
for a mangled complex constant is emitted.

Regression tested on x86_64-*-freebsd.

2018-03-07  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/56667
	* primary.c (match_sym_complex_part): Give the matcher for an implied
	do-loop a chance to run.

2018-03-07  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/56667
	* gfortran.dg/implied_do_2.f90: New test.
	* gfortran.dg/coarray_8.f90: Update for new error message.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr56667.diff
Type: text/x-diff
Size: 2264 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180305/3c546831/attachment.bin>


More information about the Fortran mailing list