[PATCH] Fix the fix for PR fortran/90988

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Oct 31 22:16:00 GMT 2019


Jeff Law sent me an email that showed my patch for
PR fortran/90988 caused a regression for fixed-form
source code.  The attached patch address that regression.

Briefly, the original patch fixed free-form souce code
parsing for 'PUBLICX' where the required whitespace was
missing (i.e., 'PUBLIC X').  Unfortunately, the regression
is that the original fix did not preserve fixed-form source
code.

OK to commit?

2019-10-31  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/90988
	* decl.c (gfc_match_private, gfc_match_public): Fixed-form source code
	does not require whitespace between PRIVATE (or PUBLIC) and an entity.

2019-10-31  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/90988
	* gfortran.dg/pr90988_4.f: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr90988.diff
Type: text/x-diff
Size: 2173 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20191031/ac19601d/attachment.bin>


More information about the Fortran mailing list