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

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Jun 19 21:10:00 GMT 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr86587.diff
Type: text/x-diff
Size: 1428 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190619/f81f4c07/attachment.bin>


More information about the Fortran mailing list