]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix ICE with use of c_associated.
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 6 May 2025 03:05:22 +0000 (20:05 -0700)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 6 May 2025 17:04:17 +0000 (10:04 -0700)
commitd0571638a6bad932b226ada98b167fa47a47d838
tree146666448bb50dd667fb197f7f1817c5ca39be17
parent86627faec10da53d7532805019e5296fcf15ac09
Fortran: Fix ICE with use of c_associated.

PR fortran/120049

gcc/fortran/ChangeLog:

* check.cc (gfc_check_c_associated): Modify checks to avoid
ICE and allow use, intrinsic :: iso_c_binding from a separate
module file.

gcc/testsuite/ChangeLog:

* gfortran.dg/pr120049_a.f90: New test.
* gfortran.dg/pr120049_b.f90: New test.
gcc/fortran/check.cc
gcc/testsuite/gfortran.dg/pr120049_a.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr120049_b.f90 [new file with mode: 0644]