]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/57048 (Handling of C_PTR and C_FUNPTR leads to reject valid)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 2 Feb 2019 16:57:39 +0000 (16:57 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 2 Feb 2019 16:57:39 +0000 (16:57 +0000)
commit5a89ffe70888d896a6ecea12b83e89de96f4fd50
tree1c6304815fada2b118662ddc3bc8371df9a20768
parent043065487339a6aa1a22b1e0c00439c2ee07882d
re PR fortran/57048 (Handling of C_PTR and C_FUNPTR leads to reject valid)

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.

From-SVN: r268478
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]