https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123352
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:882d2e6c3584f6844359a50239813fb447dcb20e commit r16-6470-g882d2e6c3584f6844359a50239813fb447dcb20e Author: Paul Thomas <[email protected]> Date: Sat Jan 3 07:37:28 2026 +0000 Fortran: Invalid association with operator-result selector [PR123352] 2026-01-03 Paul Thomas <[email protected]> gcc/fortran PR fortran/123352 * gfortran.h: Add prototype for gfc_resolve_symbol. * interface.cc (matching_typebound_op): If the current namespace has not been resolved and the derived type is use associated, resolve the derived type with gfc_resolve_symbol. * match.cc (match_association_list): If the associate name is unknown type and the selector is an operator expression, copy the selector and call gfc_extend_expr. Replace the selector if there is a match, otherwise free the copy. * resolve.cc (gfc_resolve_symbol): New function. gcc/testsuite/ PR fortran/123352 * gfortran.dg/associate_78.f90: New test.
