https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105168
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:c523f2a33b92362af74a9ab91e4f9498c5988149 commit r16-8107-gc523f2a33b92362af74a9ab91e4f9498c5988149 Author: Paul Thomas <[email protected]> Date: Mon Mar 16 07:23:49 2026 +0000 Fortran: Fix segfault due to class actual in parentheses [PR105168] 2026-03-16 Paul Thomas <[email protected]> gcc/fortran PR fortran/105168 * trans-expr.cc (gfc_conv_class_to_class): If the argument expr is not a class type 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.
