[PATCH] fortran/67616 -- Fix ICE in BLOCK with a DATA statement
Steve Kargl
sgk@troutmask.apl.washington.edu
Thu Oct 1 00:03:00 GMT 2015
The attached patch was built and tested on x86_64-*-freebsd.
OK to commit?
The patch prevents an ICE in a BLOCK construct that uses
a DATA statement and default initialization. The problem
was that the derived typed was declared in the host and
was not in the BLOCK's symtree. The fix looks for the
derived type through host associate.
Just remembered Mikael pre-approved patch.
2015-09-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/67616
* primary.c (gfc_match_structure_constructor): Use a possibly
host-associated symtree to prevent ICE.
2015-09-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/67616
* gfortran.dg/pr67616.f90: New test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr67616.diff
Type: text/x-diff
Size: 947 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151001/6155897d/attachment.bin>
More information about the Gcc-patches
mailing list