[patch, fortran] Fix PR 85102
Thomas Koenig
tkoenig@netcologne.de
Sun Apr 1 13:52:00 GMT 2018
Hello world,
this is a minimal-invasive patch to fix the case where array
specs starting with a parenthesis were not handled correctly.
Regression-tested. OK for trunk?
Regards
Thomas
2018-04-01 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/85102
* array.c (strip_parens): New function.
(match_array_element_spec): Use it to strip away parentheses
from array bounds.
2018-04-01 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/85102
* gfortran.dg/array_simplify_2.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: text/x-patch
Size: 1410 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180401/a24c94fb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array_simplify_2.f90
Type: text/x-fortran
Size: 210 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180401/a24c94fb/attachment-0001.bin>
More information about the Fortran
mailing list