This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44348] ICE in build_function_decl
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Aug 2016 18:44:00 +0000
- Subject: [Bug fortran/44348] ICE in build_function_decl
- Auto-submitted: auto-generated
- References: <bug-44348-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44348
--- Comment #12 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Slightly modified variant :
$ cat z7.f90
subroutine s(x)
contains
subroutine s(x)
end
end
$ gfortran-7-20160828 z7.f90
z7.f90:3:0:
subroutine s(x)
internal compiler error: in gfc_generate_function_code, at
fortran/trans-decl.c:6100
0x751496 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6100
0x74f357 gfc_generate_contained_functions
../../gcc/fortran/trans-decl.c:5194
0x74f357 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6143
0x6db090 translate_all_program_units
../../gcc/fortran/parse.c:5910
0x6db090 gfc_parse_file()
../../gcc/fortran/parse.c:6116
0x71d3a2 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:198