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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <[email protected]>:

https://gcc.gnu.org/g:3a2432e858be496b52e661c7083c61859df0b246

commit r17-6327-g3a2432e858be496b52e661c7083c61859df0b246
Author: Harald Anlauf <[email protected]>
Date:   Mon Nov 16 22:07:07 2026 +0100

    fortran: Scalar structure constructor and BIND(C) interface [PR128664]

    Commit r16-4712 removed code that was erroneously thought to be dead, but
    it is needed for passing a reference to a temporary structure constructor.
    Revert this code and move it to gfc_conv_structure.

            PR fortran/128664

    gcc/fortran/ChangeLog:

            * trans-expr.cc (gfc_conv_structure): When a pointer to a temporary
            structure constructor is requested, get address of the temporary.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/bind_c_assumed_rank.f90: New test.

Reply via email to