[patch, fortran] Fix PR 87673, rejects-valid
Thomas Koenig
tkoenig@netcologne.de
Sun Mar 10 20:04:00 GMT 2019
Hello world,
the attached patch fixes a 7/8/9 regression by removing
the call to gfc_resovle_expr during matching. It turned
out that gfc_resolve_expr depends on some conditions
that are not yet met during the matching phase.
Fortunately, the bug that this originally fixed (PR 82049)
has been fixed another way on trunk, so that just removing
this part works. For backporting, it would be necessary to
check if the fix(es) would need to be backported if they haven't
been already - probably one or several of Harald's patches.
So, OK for trunk? OK for backporting?
Regards
Thomas
2019-03-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/87673
* match.c (gfc_match_type_spec): Remove call to
gfc_resolve_expr for character length.
2019-03-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/87673
* gfortran.dg/charlen_17.f90: New patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p3.diff
Type: text/x-patch
Size: 397 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190310/21a899a0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: charlen_17.f90
Type: text/x-fortran
Size: 2755 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190310/21a899a0/attachment-0001.bin>
More information about the Fortran
mailing list