[Bug fortran/57048] [7/8 Regression] Handling of C_PTR and C_FUNPTR leads to reject valid
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Feb 2 16:58:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57048
--- Comment #14 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sat Feb 2 16:57:39 2019
New Revision: 268478
URL: https://gcc.gnu.org/viewcvs?rev=268478&root=gcc&view=rev
Log:
2019-02-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/57048
Backport from trunk
* 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-02-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/57048
Backport from trunk
* gfortran.dg/c_funptr_1.f90: New file.
* gfortran.dg/c_funptr_1_mod.f90: New file.
Added:
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/c_funptr_1.f90
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/c_funptr_1_mod.f90
Modified:
branches/gcc-7-branch/gcc/fortran/ChangeLog
branches/gcc-7-branch/gcc/fortran/interface.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list