]> 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>
Sat, 17 May 2025 21:00:59 +0000 (14:00 -0700)
commitdc21caefbc2d63be1315ca062e977affa74eacc2
tree12a4b8276c1fe09cccba4d2b3a67c25c7b517b77
parent4ed18795fb4f128ede2b7c610c28f108b42c606d
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.

(cherry picked from commit d0571638a6bad932b226ada98b167fa47a47d838)
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]