[Bug fortran/105168] [13/14/15/16 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 07:08:32 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105168
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Paul Thomas <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:e05d632f202c024cd8d98ad698a9713d49499b06
commit r15-11000-ge05d632f202c024cd8d98ad698a9713d49499b06
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Mon Mar 16 07:23:49 2026 +0000
Fortran: Fix segfault due to class actual in parentheses [PR105168]
2026-03-16 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 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.
(cherry picked from commit c523f2a33b92362af74a9ab91e4f9498c5988149)
More information about the Gcc-bugs
mailing list