http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50550
--- Comment #4 from janus at gcc dot gnu.org --- (In reply to janus from comment #3) > Here is a simple patch to accept the code in comment 0: ... which unfortunately introduces a large amount of ICEs in the testsuite, e.g. on bounds_check_7.f90: bounds_check_7.f90:5:0: internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1265 subroutine foo(a) ^ 0x5d3a03 gfc_get_symbol_decl(gfc_symbol*) /home/janus/gcc49/trunk/gcc/fortran/trans-decl.c:1265 0x5d441f generate_local_decl /home/janus/gcc49/trunk/gcc/fortran/trans-decl.c:4726 0x5a2d43 do_traverse_symtree /home/janus/gcc49/trunk/gcc/fortran/symbol.c:3571 0x5d65ba generate_local_vars /home/janus/gcc49/trunk/gcc/fortran/trans-decl.c:4885 0x5d65ba gfc_generate_function_code(gfc_namespace*) /home/janus/gcc49/trunk/gcc/fortran/trans-decl.c:5460 That line is /* Dummy variables should already have been created. */ gcc_assert (sym->backend_decl); however, I don't directly see how the failure comes about.