This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR fortran/84922 -- Check MODULE prefix is used


On Thu, Mar 22, 2018 at 12:19 AM, Steve Kargl <
sgk@troutmask.apl.washington.edu> wrote:

> 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
>



In the testcase, please change the "modified by me" comment to specify who
"me" is.

Otherwise Ok.

-- 
Janne Blomqvist


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]