https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113845
Bug ID: 113845 Summary: ice in gfc_get_array_ss Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 57368 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57368&action=edit F90 source code >From the flang test suite at https://github.com/llvm/llvm-project/tree/main/flang/test, file ./Lower/HLFIR/elemental-intrinsics.f90 does this with recent gfortran: test $ ~/gcc/results.20240208.asan.ubsan/bin/gfortran -c -O1 ./Lower/HLFIR/elemental-intrinsics.f90 gfortran: internal compiler error: Segmentation fault signal terminated program f951 Please submit a full bug report, with preprocessed source (by using -freport-bug). See <https://gcc.gnu.org/bugs/> for instructions. test $ gdb on f951 says: #0 0x000000000228f236 in xcalloc (nelem=1, elsize=696) at ../../trunk.20210101/libiberty/xmalloc.c:158 #1 0x00000000008588ec in gfc_get_array_ss ( next=0x3221ae8 <gfc_ss_terminator_var>, expr=0x9423af0, dimen=1, type=GFC_SS_SECTION) at ../../trunk.20210101/gcc/fortran/trans-array.cc:724 #2 gfc_walk_array_ref (ss=0x3221ae8 <gfc_ss_terminator_var>, expr=0x9423af0, ref=0x9423c20) at ../../trunk.20210101/gcc/fortran/trans-array.cc:11750 #3 0x0000000000858cd8 in gfc_walk_elemental_function_args ( ss=0x3221ae8 <gfc_ss_terminator_var>, arg=0x9423a90, intrinsic_sym=0x7ffff7a66610, type=<optimized out>) at ../../trunk.20210101/gcc/fortran/trans-array.cc:12015