[PATCH] PR fortran/30792 -- Substring data-implied-do is invalid

Steve Kargl sgk@troutmask.apl.washington.edu
Sat Feb 24 01:25:00 GMT 2018


The attached patch fixes PR fortran/30792.  A substring
reference is invalid for a data-implied-do.  Regression
tested on x86_64-*-freebsd.  OK to commit.

2018-02-23  Steven G. Kargl <kargl@gcc.gnu.org>

	PR fortran/30792
	* decl.c (gfc_match_data): Check for invalid substring in
	data-implied-do

2018-02-23  Steven G. Kargl <kargl@gcc.gnu.org>

	PR fortran/30792
	* gfortran.dg/data_substring.f90: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr30792.diff
Type: text/x-diff
Size: 1292 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180224/baa19fdf/attachment.bin>


More information about the Gcc-patches mailing list