[PATCH] PR fortran/69395 -- don't exceed max allowed array dimensions

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Mar 15 01:33:00 GMT 2018


The attachedi patch detects situations where the sum of
an array's rank and corank exceeds the maximum allowed
by the Standard.  Regression tested on x86_64-*-freebsd.

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

	PR fortran/69395
	* decl.c (merge_array_spec): Limit the merging to maximum allowed
	dimensions, and issue error message if limit is exceeded.

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

	PR fortran/69395
	* gfortran.dg/pr69395.f90

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr69395.diff
Type: text/x-diff
Size: 2442 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180315/030ab693/attachment.bin>


More information about the Gcc-patches mailing list