[PATCH] PR fortran/68154 -- repair damage done byfix for PR fortran/65429
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Oct 30 00:03:00 GMT 2015
The attached patch restores 3 lines of code removed in my
fix for PR fortran/65429. The code now checks for a NULL
character length in the typespec. If it is indeed NULL,
gfortran will look for a valid constructor to use (ie.,
the 3 lines of code). It is somewhat surprising that
it took 6 months for this bug to appear. Patch tested
on x86_64-*-freebsd. OK to commit?
2015-10-29 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68154
* decl.c (add_init_expr_to_sym): if the char length in the typespec
is NULL, check for and use the constructor.
2015-10-29 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68154
*gfortran.dg/pr68154.f90
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr68154.diff
Type: text/x-diff
Size: 1340 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151030/75144cb8/attachment.bin>
More information about the Fortran
mailing list