https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116875
Bug ID: 116875 Summary: Internal compiler error: in make_decl_rtl, at varasm.cc:1443 Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: chilikin.k at gmail dot com Target Milestone: --- Created attachment 59217 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59217&action=edit test.f90 With gfortran 14.1.0: $ cat test.f90 MODULE M1 IMPLICIT NONE ABSTRACT INTERFACE SUBROUTINE S1() END SUBROUTINE END INTERFACE END MODULE $ cat test2.f90 MODULE M2 USE M1 CONTAINS SUBROUTINE CALL_S1(S1_POINTER) PROCEDURE(S1), POINTER :: S1_POINTER CALL S1_POINTER() END SUBROUTINE SUBROUTINE S2() BLOCK PROCEDURE(S1), POINTER :: S1_POINTER CALL CALL_S1(S1_POINTER) END BLOCK END SUBROUTINE END MODULE $ gfortran -c test.f90 $ gfortran -c test2.f90 during RTL pass: expand test2.f90:15:30: 15 | CALL CALL_S1(S1_POINTER) | ^ internal compiler error: in make_decl_rtl, at varasm.cc:1443 0x7f257a0ab249 __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7f257a0ab304 __libc_start_main_impl ../csu/libc-start.c:360 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.