On 5/17/25 10:22 AM, Jerry D wrote:
Hello all,
--- snip ---
PS I managed to clean up the change log and add in Steve: Author: Jerry DeLisle <jvdeli...@gcc.gnu.org> Date: Sat May 17 09:45:14 2025 -0700 Fortran: Fix c_associated argument checks. PR fortran/120049 gcc/fortran/ChangeLog: * check.cc (gfc_check_c_associated): Use new helper functions. Only call check_c_ptr_1 if optional c_ptr_2 tests succeed. (check_c_ptr_1): Handle only c_ptr_1 checks. (check_c_ptr_2): Expand checks for c_ptr_2 and handle cases where there is no derived pointer in the gfc_expr and check the inmod_sym_id only if it exists. * misc.cc (gfc_typename): Handle the case for BT_VOID rather than throw an internal error. gcc/testsuite/ChangeLog: * gfortran.dg/pr120049_2.f90: New test. Co--Authored-By: Steve Kargl <ka...@gcc.gnu.org>