https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57048
--- Comment #12 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Tue Jan 29 22:40:26 2019 New Revision: 268372 URL: https://gcc.gnu.org/viewcvs?rev=268372&root=gcc&view=rev Log: 2019-01-29 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/57048 * interface.c (gfc_compare_types): If a derived type and an integer both have a derived type, and they are identical, this is a C binding type and compares equal. 2019-01-29 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/57048 * gfortran.dg/c_funptr_1.f90: New file. * gfortran.dg/c_funptr_1_mod.f90: New file. Added: trunk/gcc/testsuite/gfortran.dg/c_funptr_1.f90 trunk/gcc/testsuite/gfortran.dg/c_funptr_1_mod.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/interface.c trunk/gcc/testsuite/ChangeLog