https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68568
--- Comment #7 from Gerhard Steinmetz <[email protected]> --- Update for both backtraces : $ gfortran-7-20161211 -finit-local-zero -c z1a.f90 z1a.f90:1:0: subroutine s(n) internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1739 0x75c147 gfc_get_symbol_decl(gfc_symbol*) ../../gcc/fortran/trans-decl.c:1739 0x75f427 generate_local_decl ../../gcc/fortran/trans-decl.c:5363 0x71942b do_traverse_symtree ../../gcc/fortran/symbol.c:3986 0x760272 generate_local_vars ../../gcc/fortran/trans-decl.c:5563 0x760272 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6242 0x6e8490 translate_all_program_units ../../gcc/fortran/parse.c:6008 0x6e8490 gfc_parse_file() ../../gcc/fortran/parse.c:6208 0x72c312 gfc_be_parse_file ../../gcc/fortran/f95-lang.c:202 $ gfortran-7-20161211 -Wall -finit-local-zero -c z1a.f90 f951: internal compiler error: Segmentation fault 0xc4e79f crash_signal ../../gcc/toplev.c:333 0x6ec456 gfc_variable_attr(gfc_expr*, gfc_typespec*) ../../gcc/fortran/primary.c:2273 0x6ec7df gfc_expr_attr(gfc_expr*) ../../gcc/fortran/primary.c:2409 0x695e43 gfc_check_assign(gfc_expr*, gfc_expr*, int, bool) ../../gcc/fortran/expr.c:3237 0x698c89 gfc_check_assign_symbol(gfc_symbol*, gfc_component*, gfc_expr*) ../../gcc/fortran/expr.c:3876 0x71942b do_traverse_symtree ../../gcc/fortran/symbol.c:3986 0x7025d9 resolve_types ../../gcc/fortran/resolve.c:15994 0x6fdfcc gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.c:16089 0x6e82ba resolve_all_program_units ../../gcc/fortran/parse.c:5947 0x6e82ba gfc_parse_file() ../../gcc/fortran/parse.c:6194 0x72c312 gfc_be_parse_file ../../gcc/fortran/f95-lang.c:202
