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

--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Paul Thomas <[email protected]>:

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

commit r14-12472-gbe75bd57619c21ec3270f3d25949e66921892cd0
Author: Paul Thomas <[email protected]>
Date:   Wed Mar 25 09:13:05 2026 +0000

    Fortran: Fix segfault due to class actual in parentheses [PR105168]

    Backported from master:
    2026-03-25  Paul Thomas  <[email protected]>

    gcc/fortran
            PR fortran/105168
            * trans-expr.cc (gfc_conv_class_to_class): If the argument expr
            is not a variable use the parent tree if that is a class.
            (gfc_conv_procedure_call): If the argument expression is not a
            variable, shift the bounds to give unity lbounds.
            (gfc_trans_arrayfunc_assign): Return NULL_TREE instead of NULL.

    gcc/testsuite/
            PR fortran/105168
            * gfortran.dg/pr105168.f90: New test.

Reply via email to