[Bug fortran/105168] [13/14 Regression] ICE in gfc_maybe_dereference_var, at fortran/trans-expr.cc:2870 since r9-3522-gd0477233215e37de
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 25 09:13:22 GMT 2026
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 <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:be75bd57619c21ec3270f3d25949e66921892cd0
commit r14-12472-gbe75bd57619c21ec3270f3d25949e66921892cd0
Author: Paul Thomas <pault@gcc.gnu.org>
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 <pault@gcc.gnu.org>
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.
More information about the Gcc-bugs
mailing list