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

--- Comment #43 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Mikael Morin <[email protected]>:

https://gcc.gnu.org/g:afa0673b6dc70b6de2efe3fb4691cb965ecb4e08

commit r17-6978-gafa0673b6dc70b6de2efe3fb4691cb965ecb4e08
Author: Mikael Morin <[email protected]>
Date:   Tue Dec 1 11:54:48 2026 +0100

    fortran: array descriptor: Factor scalar descriptor init 1/2 [PR122521]

    Factor to a common function the identical scalar descriptor initialization
    parts between gfc_set_descriptor_from_scalar_class and
    gfc_set_descriptor_from_scalar.  The new function is mostly copied from
    gfc_set_descriptor_from_scalar, with an extra type argument from which the
    dtype initialization values are built.  Only the cobounds copy remains out
    of the factored function.

            PR fortran/122521

    gcc/fortran/ChangeLog:

            * trans-descriptor.cc (gfc_set_descriptor_from_scalar_class,
            gfc_set_descriptor_from_scalar): Factor common code...
            (set_descriptor_from_scalar): ... to this new function.

Reply via email to