[PATCH] PR fortran/84922 -- Check MODULE prefix is used
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Mar 21 22:30:00 GMT 2018
If an interface body includes a MODULE prefix on a subroutine
or function, then the prefix must appear on the contained
subprogram. This patch does that check, and issues an error
message.
2018-03-21 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/84922
* decl.c (get_proc_name): If the MODULE prefix appears in interface
body, then it must appear on the contained subroutine or function.
While here, fix nearby mis-indented code.
2018-03-21 Steven G. Kargl <kargl@gcc.gnu.org
PR fortran/84922
* gfortran.dg/interface_42.f90: New test.
* gfortran.dg/interface_43.f90: New test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr84922.diff
Type: text/x-diff
Size: 3445 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180321/41623e30/attachment.bin>
More information about the Gcc-patches
mailing list