https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101350
Bug ID: 101350
Summary: ICE in build_function_decl, at
fortran/trans-decl.c:2376
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
A name clash affects versions down to at least r5 :
$ cat z1.f90
module m
external s
contains
subroutine s
end
end
$ gfortran-12-20210704 -c z1.f90
f951: internal compiler error: in build_function_decl, at
fortran/trans-decl.c:2376
0x7c7f39 build_function_decl
../../gcc/fortran/trans-decl.c:2376
0x7cd966 gfc_create_function_decl(gfc_namespace*, bool)
../../gcc/fortran/trans-decl.c:3090
0x7ad107 gfc_generate_module_code(gfc_namespace*)
../../gcc/fortran/trans.c:2314
0x759421 translate_all_program_units
../../gcc/fortran/parse.c:6451
0x759421 gfc_parse_file()
../../gcc/fortran/parse.c:6733
0x7a5c4f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:216