Fortran: a C interoperable function cannot have the CLASS attribute [PR95375]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 20 Dec 2022 20:17:08 +0000 (21:17 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 20 Dec 2022 21:24:01 +0000 (22:24 +0100)
commitaed5584ff6891560dc567e54517b9722dadc503e
tree010a8bb9d5343f4744c7b3a4843f4056de9154eb
parenta6504f13a0509f3937bdcdf63bf76bed7d880b72
Fortran: a C interoperable function cannot have the CLASS attribute [PR95375]

gcc/fortran/ChangeLog:

PR fortran/95375
* decl.cc (verify_bind_c_sym): Extend interoperability check to
CLASS variables.

gcc/testsuite/ChangeLog:

PR fortran/95375
* gfortran.dg/bind_c_procs_4.f90: New test.
gcc/fortran/decl.cc
gcc/testsuite/gfortran.dg/bind_c_procs_4.f90 [new file with mode: 0644]