[PATCH] PR fortran/86587 -- PRIVATE and BIND(C) are allowed for derived type

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

[PATCH] PR fortran/86587 -- PRIVATE and BIND(C) are allowed for derived type

Steve Kargl
Revision 126185 introduced ISO C Binding to gfortran.
In that revision, a check for a conflict between a
derived type with the PRIVATE attribute and BIND(C) was
introduced.  After checking the F2003, F2008, and F2018
standards, I cannot find this restriction.  Thus, the
check is removed by the attached patch.  Regression
checked on x86_64-*-freebsd.  OK to commit?

2019-06-19  Steven G. Kargl  <[hidden email]>

        PR fortran/86587
        * symbol.c (verify_bind_c_derived_type): Remove erroneous error
        checking for BIND(C) and PRIVATE attributes.

2019-06-19  Steven G. Kargl  <[hidden email]>

        PR fortran/86587
        * gfortran.dg/pr86587.f90: New test.

--
Steve

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

Re: [PATCH] PR fortran/86587 -- PRIVATE and BIND(C) are allowed for derived type

Janne Blomqvist-3
On Thu, Jun 20, 2019 at 12:10 AM Steve Kargl
<[hidden email]> wrote:

>
> Revision 126185 introduced ISO C Binding to gfortran.
> In that revision, a check for a conflict between a
> derived type with the PRIVATE attribute and BIND(C) was
> introduced.  After checking the F2003, F2008, and F2018
> standards, I cannot find this restriction.  Thus, the
> check is removed by the attached patch.  Regression
> checked on x86_64-*-freebsd.  OK to commit?
>
> 2019-06-19  Steven G. Kargl  <[hidden email]>
>
>         PR fortran/86587
>         * symbol.c (verify_bind_c_derived_type): Remove erroneous error
>         checking for BIND(C) and PRIVATE attributes.
>
> 2019-06-19  Steven G. Kargl  <[hidden email]>
>
>         PR fortran/86587
>         * gfortran.dg/pr86587.f90: New test.
>
> --
> Steve

Ok.

--
Janne Blomqvist