[PATCH] PR fortran/68054 -- PROTECTED in modules only

Steve Kargl sgk@troutmask.apl.washington.edu
Sat Oct 24 17:51:00 GMT 2015


The attached patch fixes an ICE that occurs when gfortran 
is not expecting a PROTECTED attribute.  Built and tested
on x86_64-*-freebsd.  OK to commit?


2015-10-24  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/68054
	* decl.c (match_attr_spec): PROTECTED can only be a module.

2015-10-24  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/68054
	* gfortran.dg/pr68054.f90: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr68054.diff
Type: text/x-diff
Size: 1045 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151024/28da5b40/attachment.bin>


More information about the Fortran mailing list