https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113846
Bug ID: 113846 Summary: ice in fold_convert_loc, at fold-const.cc:2757 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 57369 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57369&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-polymorphic-merge.f90, does this with recent gfortran: test $ ~/gcc/results.20240208.asan.ubsan/bin/gfortran -c ./Lower/HLFIR/elemental-polymorphic-merge.f90 ./Lower/HLFIR/elemental-polymorphic-merge.f90:10:20: 10 | r = merge(x, y, m) | 1 internal compiler error: in fold_convert_loc, at fold-const.cc:2757 0xac84c2 fold_convert_loc(unsigned int, tree_node*, tree_node*) /home/dcb38/gcc/working/gcc/../../trunk.20210101/gcc/fold-const.cc:2757 0x8ade4d gfc_conv_intrinsic_merge(gfc_se*, gfc_expr*) /home/dcb38/gcc/working/gcc/../../trunk.20210101/gcc/fortran/trans-intrinsic.cc:7589