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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <h...@gcc.gnu.org>:

https://gcc.gnu.org/g:2e567a06555ac92105e6264fc219a2d5131e1b4e

commit r16-3230-g2e567a06555ac92105e6264fc219a2d5131e1b4e
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Fri Aug 1 05:00:51 2025 -0700

    fortran: Set DECL_TLS_MODEL after processing a variable

    Call set_decl_tls_model only after a variable has been fully processed,
    not in the middle of processing it.

    gcc/fortran/

            PR fortran/107421
            * trans-common.cc (build_common_decl): Call set_decl_tls_model
            after processing a variable.
            * trans-decl.cc (gfc_finish_var_decl): Likewise.
            (get_proc_pointer_decl): Likewise.

    gcc/testsuite/

            PR fortran/107421
            * gfortran.dg/gomp/pr107421.f90: New test.

    Signed-off-by: H.J. Lu <hjl.to...@gmail.com>

Reply via email to