[PATCH] PR fortran/67939 -- Fix zero length strings in DATA statement

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Oct 21 20:06:00 GMT 2015


The attach patch properly sets the length for a zero length string
in a data.  Built and regression tested on x86_64-*-freebsd.  The
testcase is self-explanatory.

OK to commit?


2015-10-21  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/67939
	* data.c (create_character_initializer): Deal with zero length string.

2015-10-21  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/67939
	* gfortran.dg/pr67939.f90: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr67939.diff
Type: text/x-diff
Size: 2328 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151021/80cd3cdf/attachment.bin>


More information about the Fortran mailing list