[PATCH] PR fortran/78739 -- detect statement function name conflict

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] PR fortran/78739 -- detect statement function name conflict

Steve Kargl
The attach patch checks that a statement function name
does not conflict the name of the containing function.
Regression tested on x86_64-*-freebsd.  OK to commit?

2019-08-16  Steven G. Kargl  <[hidden email]>

        PR fortran/78739
        * match.c (gfc_match_st_function):  When matching a statement function,
        need to check if the statement function name shadows the function
        name.

2019-08-16  Steven G. Kargl  <[hidden email]>

        PR fortran/78739
        * fortran.dg/pr78739.f90: New test.

--
Steve

pr78739.diff (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] PR fortran/78739 -- detect statement function name conflict

Janne Blomqvist-3
On Sat, Aug 17, 2019 at 2:47 AM Steve Kargl
<[hidden email]> wrote:

>
> The attach patch checks that a statement function name
> does not conflict the name of the containing function.
> Regression tested on x86_64-*-freebsd.  OK to commit?
>
> 2019-08-16  Steven G. Kargl  <[hidden email]>
>
>         PR fortran/78739
>         * match.c (gfc_match_st_function):  When matching a statement function,
>         need to check if the statement function name shadows the function
>         name.
>
> 2019-08-16  Steven G. Kargl  <[hidden email]>
>
>         PR fortran/78739
>         * fortran.dg/pr78739.f90: New test.

Ok, thanks.



--
Janne Blomqvist