HI Jerry, The patch looks good to me. OK for mainline and for backporting. I never quite know what to suggest for delaying backporting and so I will leave it to your judgement.
Thanks for the patch. Paul On Tue, 6 May 2025 at 04:30, Jerry D <jvdelis...@gmail.com> wrote: > Attached patch fixes this by checking for BT_VOID and EXPR_FUNCTION. > > Thank you for guidance from Steve in the PR and Vincent for > identifying the problem. > > Two test case files added to the testsuite. > > Regression tested on x86_64. > > OK for mainline? > > Since this breakage impacts gtk-fortran I would also like to backport to > 14 and 15. > > Best regards, > > Jerry > > Author: Jerry DeLisle <jvdeli...@gcc.gnu.org> > Date: Mon May 5 20:05:22 2025 -0700 > > 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. > >