https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70864
Bug ID: 70864 Summary: internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1403 Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: weiqun.zhang at gmail dot com Target Milestone: --- Created attachment 38371 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38371&action=edit code demonstrating the problem Internal compiler error is encountered when compiling the attached code: $ gfortran -c mymod.f90 mymod.f90:31:0: end module multifab_module internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1403 0x69f0eb gfc_get_symbol_decl(gfc_symbol*) ../../../src/gcc-6.1.0/gcc/fortran/trans-decl.c:1403 0x6a13a7 generate_local_decl ../../../src/gcc-6.1.0/gcc/fortran/trans-decl.c:5220 0x66a1db do_traverse_symtree ../../../src/gcc-6.1.0/gcc/fortran/symbol.c:3817 0x6a1fda generate_local_vars ../../../src/gcc-6.1.0/gcc/fortran/trans-decl.c:5410 0x6a1fda gfc_generate_function_code(gfc_namespace*) ../../../src/gcc-6.1.0/gcc/fortran/trans-decl.c:6089 0x682281 gfc_generate_module_code(gfc_namespace*) ../../../src/gcc-6.1.0/gcc/fortran/trans.c:2058 0x63af8d translate_all_program_units ../../../src/gcc-6.1.0/gcc/fortran/parse.c:5600 0x63af8d gfc_parse_file() ../../../src/gcc-6.1.0/gcc/fortran/parse.c:5819 0x67c0d5 gfc_be_parse_file ../../../src/gcc-6.1.0/gcc/fortran/f95-lang.c:201