[PATCH] PR fortran/86587 -- PRIVATE and BIND(C) are allowed for derived type
Janne Blomqvist
blomqvist.janne@gmail.com
Thu Jun 20 20:17:00 GMT 2019
On Thu, Jun 20, 2019 at 12:10 AM Steve Kargl
<sgk@troutmask.apl.washington.edu> 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 <kargl@gcc.gnu.org>
>
> 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 <kargl@gcc.gnu.org>
>
> PR fortran/86587
> * gfortran.dg/pr86587.f90: New test.
>
> --
> Steve
Ok.
--
Janne Blomqvist
More information about the Gcc-patches
mailing list