re PR fortran/57048 (Handling of C_PTR and C_FUNPTR leads to reject valid)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 29 Jan 2019 22:40:26 +0000 (22:40 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 29 Jan 2019 22:40:26 +0000 (22:40 +0000)
commit5af5f1de35772754e844c391ab5bfa90ad231077
tree8225cc326bf0ad06d96ec04962463e1b0ca5af95
parentb33d65e3023d5366404e99e4a06e6452d1204b83
re PR fortran/57048 (Handling of C_PTR and C_FUNPTR leads to reject valid)

2019-01-29  Thomas Koenig  <tkoenig@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  <tkoenig@gcc.gnu.org>

PR fortran/57048
* gfortran.dg/c_funptr_1.f90: New file.
* gfortran.dg/c_funptr_1_mod.f90: New file.

From-SVN: r268372
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_funptr_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/c_funptr_1_mod.f90 [new file with mode: 0644]