https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61831
--- Comment #17 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- In comment 16 I have forgotten to list commands.f90 commands.f90: In function 'create_auto_decays': commands.f90:3695:0: internal compiler error: in gfc_conv_expr_reference, at fortran/trans-expr.c:6519 new_prt_spec ([prt_in]), new_prt_spec (prt_out), global) which seems to be the culprit. If I make the reduced test attached to comment 13 with 4.9.1, the test fails; if I compile commands.f90 with gfortran, make again, then the test succeeds.