https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118705

            Bug ID: 118705
           Summary: Issue compiling derived types when split into
                    submodules
           Product: gcc
           Version: 14.1.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 60333
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60333&action=edit
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 error.txt]
f951: internal compiler error: in matching_typebound_op, at
fortran/interface.cc:4616
0x1ff7da6 internal_error(char const*, ...)
        ???:0
0x6f30a9 fancy_abort(char const*, int, char const*)
        ???:0
0x76ddff gfc_extend_expr(gfc_expr*)
        ???:0
0x7f7d39 gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        ???:0
0x7f4d2b gfc_resolve_code(gfc_code*, gfc_namespace*)
        ???:0
0x7f32ed 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 seems to be an issue where derived types that are split into a submodule
do not compile correctly. 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.

Reply via email to