https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88139
Bug ID: 88139 Summary: ICE in get_c_type_name, at fortran/dump-parse-tree.c:3047 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Since version 8 with option -fc-prototypes : $ cat z1.f90 module m contains subroutine s(*) bind(c, name='f') end end $ gfortran-9-20181118 -c z1.f90 -fc-prototypes f951: internal compiler error: Segmentation fault 0xc8934f crash_signal ../../gcc/toplev.c:325 0x636b19 get_c_type_name ../../gcc/fortran/dump-parse-tree.c:3047 0x63955d write_proc ../../gcc/fortran/dump-parse-tree.c:3262 0x63955d write_interop_decl ../../gcc/fortran/dump-parse-tree.c:3318 0x6cfae2 do_traverse_symtree ../../gcc/fortran/symbol.c:4151 0x63e2d3 gfc_dump_c_prototypes(gfc_namespace*, _IO_FILE*) ../../gcc/fortran/dump-parse-tree.c:3026 0x699ac0 gfc_parse_file() ../../gcc/fortran/parse.c:6273 0x6e2d9f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. void f ($ $