https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51434
--- Comment #20 from kargl at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #18) > > After several people including have gone down rabbit > > holes trying to fix this bug, I have found a patch! > > The patch at https://gcc.gnu.org/ml/fortran/2018-02/msg00181.html fixes > several tests in this PR, but not the ones in comment 14 The code in comment 13 is irrelevant. You get can the same backtrace without transfer type t character :: z end type t type(t), parameter :: s(5) = t('a') if (s%z /= 'a') stop 1 end f951: internal compiler error: Segmentation fault 0xcf8d7f crash_signal ../../gcc/gcc/toplev.c:325 0x1607d70 splay_tree_min ../../gcc/libiberty/splay-tree.c:484 0x75bd7d gfc_constructor_first(splay_tree_s*) ../../gcc/gcc/fortran/constructor.c:234 0x77b03f find_component_ref ../../gcc/gcc/fortran/expr.c:1356 0x77b03f simplify_const_ref ../../gcc/gcc/fortran/expr.c:1795 0x77b42d simplify_const_ref ../../gcc/gcc/fortran/expr.c:1740 0x77bbad gfc_simplify_expr(gfc_expr*, int) ../../gcc/gcc/fortran/expr.c:2004 0x77bccd simplify_parameter_variable ../../gcc/gcc/fortran/expr.c:1869 0x77bb8e gfc_simplify_expr(gfc_expr*, int) ../../gcc/gcc/fortran/expr.c:1976