Hi Jerry,

I have temporarily given up on the refactoring of this area of code.

The patch is OK by be since it applies cleanly and passes regression testing.

OK for mainline and later for backporting.

Thanks for the patch.

Regards

Paul

On Tue, 9 Jun 2026 at 18:42, Jerry D <[email protected]> wrote:
>
> see attached patch file.
>
> This fixes a breakage from the previous fix for 125528.
>
> Regression tested on x86_64.
>
> OK for mainline and later backport.
>
> Note when backported this needs to go along with 125528.
>
>
> Regards,
>
> Jerry
>
> ---
>
> 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.
> ---

Reply via email to