https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82586
Bug ID: 82586 Summary: ICE: write_symbol(): bad module symbol Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- I recently did some tests with the very new PDT feature to generate some tiny, disruptive test cases : $ cat z1.f90 module m type t(a) end type end $ gfortran-8-20171015 -c z1.f90 f951: internal compiler error: write_symbol(): bad module symbol 'a' 0x68da6f gfc_internal_error(char const*, ...) ../../gcc/fortran/error.c:1349 0x6ca032 write_symbol ../../gcc/fortran/module.c:5612 0x6ca07b write_symbol1_recursion ../../gcc/fortran/module.c:5839 0x6cce75 write_symbol1 ../../gcc/fortran/module.c:5872 0x6cce75 write_module ../../gcc/fortran/module.c:6016 0x6cce75 dump_module ../../gcc/fortran/module.c:6143 0x6cd0fd gfc_dump_module(char const*, int) ../../gcc/fortran/module.c:6200 0x6e6a56 gfc_parse_file() ../../gcc/fortran/parse.c:6241 0x72a6bf gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204