This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR fortran/84922 -- Check MODULE prefix is used
- From: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 22 Mar 2018 10:22:48 +0200
- Subject: Re: [PATCH] PR fortran/84922 -- Check MODULE prefix is used
- References: <20180321221906.GA76669@troutmask.apl.washington.edu>
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