[PATCH] PR fortran/43996 -- Too large array constructor in SPREAD

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Nov 17 16:05:00 GMT 2015


The attached patch fixes an issue with SPREAD and the PARAMETER
attribute when an array constructor is too large for expansion.
gfortran now issues an error message and points to the 
-fmax-array-constructor.

Patch built on i386-*-freebsd and x86_64-*-freebsd.  There are
no regressions.  OK to commit?

2015-11-17  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/43996
	* simplify.c (gfc_simplify_spread): Issue error for too large array 
	constructor in a PARAMETER statement.

2015-11-17  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/43996
	* gfortran.dg/pr43996.f90

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43996.diff
Type: text/x-diff
Size: 1664 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151117/6b25731d/attachment.bin>


More information about the Gcc-patches mailing list