[PATCH] PR fortran/59910 -- structure constructor in DATA statement
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Nov 17 20:34:00 GMT 2015
Here's what looks like a fairly simple patch, but it leads
to a question. Why does gfortran not try to reduce the
components in a structure constructor in general? I've
hidden the gfc_reduce_init_expr() behind a check for a
DATA statement, but I suspect gfc_reduce_init_expr()
may be useful for PARAMETER statements as well (need to
check this!).
Anyway, the patch has been built and tested on x86_64-*-freebsd.
A slightly different patch was built and tested on i386-*-freebsd.
OK to commit?
2015-11-17 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/59910
* primary.c (gfc_match_structure_constructor): Reduce a structure
constructor in a DATA statement.
2015-11-17 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/59910
* gfortran.dg/pr59910.f90:
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr59910.diff
Type: text/x-diff
Size: 1018 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151117/b9d24494/attachment.bin>
More information about the Fortran
mailing list