https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125650
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jerry DeLisle <[email protected]>: https://gcc.gnu.org/g:8dd09c3cf067167d6ec472c76ef6412eed9dca30 commit r17-1475-g8dd09c3cf067167d6ec472c76ef6412eed9dca30 Author: Jerry DeLisle <[email protected]> Date: Tue Jun 9 09:46:30 2026 -0700 fortran: ICE for ASSOCIATE selector that is an overloaded intrinsic operator Add a fallback branch in match_association_list that, for any remaining unresolved EXPR_OP selector with BT_UNKNOWN type, calls gfc_extend_expr to resolve the overloaded operator to its function call early, so the associate name receives a usable type before the body is parsed. The INTRINSIC_USER path is unchanged. Assisted by: Claude Sonnet 4.6 PR fortran/125650 gcc/fortran/ChangeLog: * match.cc (match_association_list): Handle ASSOCIATE selectors that are overloaded intrinsic operator expressions by extending them with gfc_extend_expr at parse time, so the associate name is typed before the construct body is parsed. gcc/testsuite/ChangeLog: * gfortran.dg/associate_81.f90: New test. (cherry picked from commit 0ae0849b54aac359e0f67b3fe2767c3739bd6495)
