https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118710
Bug ID: 118710 Summary: Segmentation fault on innocuous line in sub module Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rtkoehle at mtu dot edu Target Milestone: --- Created attachment 60336 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60336&action=edit Tar of the bug-producing fortran code, stderr, modfiles, and script to build the code Tar of the bug-producing fortran code, stderr, modfiles, and script to build the code System Info: gfortran version: 14.2.1 20240910 (GCC) OS: Arch Linux x86_64 CPU: AMD Ryzen 9 7950X (32) @ 5.88 GHz Stderr [see stderror.txt] freeform_common_s.f90:12:79: 12 | allocate (character(length) :: outString(num_elements), stat=jalloc_stat) | 1 internal compiler error: Segmentation fault 0x1ff7da6 internal_error(char const*, ...) ???:0 0x8445f9 gfc_array_allocate(gfc_se*, gfc_expr*, tree_node*, tree_node*, tree_node*, tree_node*, tree_node*, tree_node**, gfc_expr*, tree_node*, bool, gfc_omp_namelist*) ???:0 0x8e10f5 gfc_trans_allocate(gfc_code*, gfc_omp_namelist*) ???:0 0x8c5dca gfc_trans_if(gfc_code*) ???:0 0x881e5f gfc_generate_function_code(gfc_namespace*) ???:0 0x83c961 gfc_generate_module_code(gfc_namespace*) ???:0 0x7f3c8f gfc_parse_file() ???:0 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See <https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues> for instructions. [to reproduce] extract tarball and either run `gfortran -freport-bug -c heading_mod.f90 heading_s.f90 classification.f90 classification_s.f90 ` or provided build_bug.sh script [further notes] This code also yields the same error on debian:trixie, so it is not just an arch package issue. This code does compile with the intel and nag compilers.