[PATCH] PR fortran/67803 -- Check CHARACTER array constructor element types
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Nov 13 21:57:00 GMT 2015
On Fri, Nov 13, 2015 at 01:57:13PM -0800, Steve Kargl wrote:
> The attached patch fixes an ICE that occurs in arith.c(gfc_arith_concat)
> because op1 and op2 have incompatible typespecs. The fix is actually
> implemented in array.c(gfc_match_array_constructor) where the types
> of the elements in a constructor are compared to the typespec that was
> specified in the constructor. See testcase for examples. Built
> and regression tested on x86_64-*-freebsd. OK to commit?
>
> 2015-11-13 Steven G. Kargl <kargl@gcc.gnu.org>
>
> PR fortran/67803
> * array.c (gfc_match_array_constructor): If array constructor included
> a CHARACTER typespec, check array elements for compatible type.
>
> 2015-11-13 Steven G. Kargl <kargl@gcc.gnu.org>
>
> PR fortran/67803
> * gfortran.dg/pr67803.f90: New test.
>
Now with a patch attached.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr67803.diff
Type: text/x-diff
Size: 2222 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151113/506c3198/attachment.bin>
More information about the Fortran
mailing list