]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: resolve correct generic with TYPE(C_PTR) arguments [PR61615,PR99982]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 11 Apr 2023 14:44:32 +0000 (16:44 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 23 Apr 2023 18:30:22 +0000 (20:30 +0200)
commit62a4f2fb356cab8cfebfeeac2895b657c32b8dd4
tree588dd5167117629753aa11612afd1d1d414c51fa
parent767d85d69f3d3f718f2a294f8e03be3a8aa65c4b
Fortran: resolve correct generic with TYPE(C_PTR) arguments [PR61615,PR99982]

gcc/fortran/ChangeLog:

PR fortran/61615
PR fortran/99982
* interface.cc (compare_parameter): Enable type and rank checks for
arguments of derived type from the intrinsic module ISO_C_BINDING.

gcc/testsuite/ChangeLog:

PR fortran/61615
PR fortran/99982
* gfortran.dg/interface_49.f90: New test.

(cherry picked from commit c482995cc5bac4a2168ea0049041e712544e474b)
gcc/fortran/interface.cc
gcc/testsuite/gfortran.dg/interface_49.f90 [new file with mode: 0644]