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: "bdavis at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Aug 2015 14:42:10 +0000
- Subject: [Bug fortran/44348] ICE in build_function_decl
- Auto-submitted: auto-generated
- References: <bug-44348-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44348
Bud Davis <bdavis at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bdavis at gcc dot gnu.org
--- Comment #7 from Bud Davis <bdavis at gcc dot gnu.org> ---
Current status:
Original report is fixed.
GNU Fortran (GCC) 6.0.0 20150811 (experimental)
[bdavis@linux1 ~/gcc]$ cat a.f
subroutine sub(ff)
contains
subroutine ff
end subroutine
end
[bdavis@linux1 ~/gcc]$ ./run/bin/gfortran a.f
a.f:3:72:
Error: internal procedure 'ff' at (1) conflicts with DUMMY argument
>From comment #2, still broken
[bdavis@linux1 ~/gcc]$ cat b.f
subroutine s
contains
SUBROUTINE s
END SUBROUTINE
end subroutine
[bdavis@linux1 ~/gcc]$ ./run/bin/gfortran b.f
b.f:3:0:
SUBROUTINE s
1
internal compiler error: in gfc_generate_function_code, at
fortran/trans-decl.c:5781
0x6e7ff0 gfc_generate_function_code(gfc_namespace*)
../../current/gcc/fortran/trans-decl.c:5781
0x6e5f37 gfc_generate_contained_functions
../../current/gcc/fortran/trans-decl.c:5038
0x6e5f37 gfc_generate_function_code(gfc_namespace*)
../../current/gcc/fortran/trans-decl.c:5824
0x673490 translate_all_program_units
../../current/gcc/fortran/parse.c:5521
0x673490 gfc_parse_file()
../../current/gcc/fortran/parse.c:5726
0x6b4d22 gfc_be_parse_file
../../current/gcc/fortran/f95-lang.c:209
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.