https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120049

--- Comment #36 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jerry DeLisle <jvdeli...@gcc.gnu.org>:

https://gcc.gnu.org/g:42983ffde6612b7f8a4e7ab3e76fa8b0d136e854

commit r16-915-g42983ffde6612b7f8a4e7ab3e76fa8b0d136e854
Author: Jerry DeLisle <jvdeli...@gcc.gnu.org>
Date:   Mon May 19 19:41:16 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_a.f90: Update test directives.
            * gfortran.dg/pr120049_b.f90: Update test directives
            * gfortran.dg/pr120049_2.f90: New test.

            Co-Authored-By: Steve Kargl <ka...@gcc.gnu.org>

Reply via email to