[PATCH] PR fortran/90166 -- Add check for module prefix
Steve Kargl
sgk@troutmask.apl.washington.edu
Thu May 2 06:06:00 GMT 2019
The attach patch adds a check that a module prefix
occurs only in a module, submodule, or interface.
C1547 (R1526) MODULE shall appear only in the function-stmt or
subroutine-stmt of a module subprogram or of a nonabstract
interface body that is declared in the scoping unit of a
module or submodule.
The patch has been bootstrapped and regression
tested on x86_64-*-freebsd. OK to commit?
2019-04-19 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/90166
* decl.c (in_module_or_interface): New function to check that the
current state is in a module, submodule, or interface.
(gfc_match_prefix): Use it.
PR fortran/90166
* gfortran.dg/submodule_22.f08: Add additional dg-error comments.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr90166.diff
Type: text/x-diff
Size: 2188 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190502/9fac9c88/attachment.bin>
More information about the Fortran
mailing list