[PATCH] PR fortran/91959 -- Re-arrange matching of %FILL
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Oct 4 18:18:00 GMT 2019
The attached patch has been tested on x86_64-*-freebsd.
OK to commit.
Apparently, DEC Fortran allows one to use %FILL as a variable name.
When the -fdec code was added to gfortran, variable_decl was updated
to match %FILL. This was done by first ilooking for the % character,
and if found, it is burned and FILL is then match. Unfortunately,
as the new testcase shows this allowed any variable starting with
% to match. The patch re-arranges the code so that an error is
issues for variables starting with %, which are not %FILL.
2019-10-04 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran.91959
* fortran/decl.c (variable_decl): Re-arrange code for matching %FILL.
2019-10-04 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran.91959
* gfortran.dg/pr91959.f90: New test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr91959.diff
Type: text/x-diff
Size: 2733 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20191004/07ce4ddd/attachment.bin>
More information about the Fortran
mailing list