https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95342
Bug ID: 95342 Summary: [9/10/11 Regression] ICE in gfc_match_subroutine, at fortran/decl.c:7913 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20191013 and 20191020, with a name conflict : $ cat z1.f90 module m interface module subroutine s() end subroutine s() bind(c) end end interface end $ gfortran-11-20200524 -c z1.f90 f951: internal compiler error: Segmentation fault 0xbc0f6f crash_signal ../../gcc/toplev.c:328 0x644307 gfc_match_subroutine() ../../gcc/fortran/decl.c:7913 0x6a8427 decode_statement ../../gcc/fortran/parse.c:382 0x6a9e1a next_free ../../gcc/fortran/parse.c:1279 0x6a9e1a next_statement ../../gcc/fortran/parse.c:1511 0x6aba5c parse_interface ../../gcc/fortran/parse.c:3519 0x6aba5c parse_spec ../../gcc/fortran/parse.c:3875 0x6af43e parse_module ../../gcc/fortran/parse.c:6115 0x6af787 gfc_parse_file() ../../gcc/fortran/parse.c:6428 0x6fb9af gfc_be_parse_file ../../gcc/fortran/f95-lang.c:210