[Bug fortran/103367] [13/14/15 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 since r12-4278-g74ccca380cde5e79
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 9 18:30:04 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103367
--- Comment #42 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jerry DeLisle
<jvdelisle@gcc.gnu.org>:
https://gcc.gnu.org/g:4b39571b19683d58fcc6a959bee190b7bb0f7798
commit r14-12732-g4b39571b19683d58fcc6a959bee190b7bb0f7798
Author: Jerry DeLisle <jvdelisle@gcc.gnu.org>
Date: Mon Jul 6 18:30:05 2026 -0700
fortran: [PR103367] Followup patch to fix related test cases
PR fortran/103367
gcc/fortran/ChangeLog:
* expr.cc (simplify_const_ref): Hoist the call to
remove_subobject_ref up a level.
* primary.cc (gfc_match_rvalue): Don't copy the value expr
if the type is an EXPR_VARIABLE.
not
* trans-array.cc (gfc_conv_array_initializer): Only copy the expr
value if it does not have a ref.
gcc/testsuite/ChangeLog:
* gfortran.dg/pr103367_2.f90: New test.
* gfortran.dg/pr103367_3.f90: New test.
* gfortran.dg/pr103367_4.f90: New test.
(cherry picked from commit b1eb6e08939a01a18724d35da3dd0098cb993ab9)
More information about the Gcc-bugs
mailing list