https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122521
--- Comment #19 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Mikael Morin <[email protected]>: https://gcc.gnu.org/g:a2031842428f3507c2624adbeebe57c9d926dbbf commit r17-2549-ga2031842428f3507c2624adbeebe57c9d926dbbf Author: Mikael Morin <[email protected]> Date: Mon Jul 20 11:09:22 2026 +0200 fortran: array descriptor: Add a setter for the token field [PR122521] Add a setter function to set the value of the token field of array descriptors. Contrary to the preceding patches touching the other fields, this one doesn't create a getter and retains direct access to the field. Indeed, token is special because its address is taken and passed to library functions to implement coarray behaviour. PR fortran/122521 gcc/fortran/ChangeLog: * trans-descriptor.cc (gfc_conv_descriptor_token_set): New function. * trans-descriptor.h (gfc_conv_descriptor_token_set): New declaration. * trans-array.cc (gfc_conv_expr_descriptor, gfc_conv_array_parameter, gfc_trans_deferred_array): Use gfc_conv_descriptor_token_set to set the value of the token. * trans-expr.cc (gfc_conv_derived_to_class, gfc_trans_subcomponent_assign, gfc_trans_scalar_assign): Likewise. * trans-intrinsic.cc (conv_intrinsic_move_alloc): Likewise.
