https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49630
--- Comment #11 from Vittorio Zecca <zeccav at gmail dot com> --- I am still having an ICE with gfortran 5.3.0 on the following module abc implicit none type,abstract::abc_abstract contains procedure(abc_interface),deferred::abc_function end type abc_abstract type,extends(abc_abstract)::abc_type contains procedure::abc_function end type abc_type abstract interface function abc_interface(this) import abc_abstract class(abc_abstract),intent(in)::this character(len=*)::abc_interface end function abc_interface end interface contains function abc_function(this) class(abc_type),intent(in)::this character(len=5)::abc_function abc_function="hello" end function abc_function subroutine do_something(this) class(abc_abstract),intent(in)::this print *,this%abc_function() end subroutine do_something end module abc gfbug111.f:30:0: print *,this%abc_function() 1 internal compiler error: in wide_int_to_tree, at tree.c:1465 0xc3eae3 wide_int_to_tree(tree_node*, generic_wide_int<wide_int_ref_storage<false> > const&) /home/vitti/gcc-5.3.0/gcc/tree.c:1465 0xc3ebb9 build_int_cst(tree_node*, long) /home/vitti/gcc-5.3.0/gcc/tree.c:1273 0x83a9aa round_up_loc(unsigned int, tree_node*, unsigned int) /home/vitti/gcc-5.3.0/gcc/fold-const.c:16043 0xa555bb finalize_type_size /home/vitti/gcc-5.3.0/gcc/stor-layout.c:1802 0xa56766 layout_type(tree_node*) /home/vitti/gcc-5.3.0/gcc/stor-layout.c:2442 0xc3cb73 build_array_type_1 /home/vitti/gcc-5.3.0/gcc/tree.c:7968 0x709a64 gfc_get_character_type_len_for_eltype(tree_node*, tree_node*) /home/vitti/gcc-5.3.0/gcc/fortran/trans-types.c:1048 0x6d16d7 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*, gfc_expr*, vec<tree_node*, va_gc, vl_embed>*) /home/vitti/gcc-5.3.0/gcc/fortran/trans-expr.c:5644 0x6d1d6f gfc_conv_function_expr /home/vitti/gcc-5.3.0/gcc/fortran/trans-expr.c:6293 0x6d789a gfc_conv_expr_reference(gfc_se*, gfc_expr*) /home/vitti/gcc-5.3.0/gcc/fortran/trans-expr.c:7349 0x6f277f gfc_trans_transfer(gfc_code*) /home/vitti/gcc-5.3.0/gcc/fortran/trans-io.c:2394 0x6a4e47 trans_code /home/vitti/gcc-5.3.0/gcc/fortran/trans.c:1868 0x6f03a7 build_dt /home/vitti/gcc-5.3.0/gcc/fortran/trans-io.c:1921 0x6a4e67 trans_code /home/vitti/gcc-5.3.0/gcc/fortran/trans.c:1840 0x6c4ce3 gfc_generate_function_code(gfc_namespace*) /home/vitti/gcc-5.3.0/gcc/fortran/trans-decl.c:5851 0x6a8421 gfc_generate_module_code(gfc_namespace*) /home/vitti/gcc-5.3.0/gcc/fortran/trans.c:2036 0x662d4d translate_all_program_units /home/vitti/gcc-5.3.0/gcc/fortran/parse.c:5330 0x662d4d gfc_parse_file() /home/vitti/gcc-5.3.0/gcc/fortran/parse.c:5540 0x6a22b5 gfc_be_parse_file /home/vitti/gcc-5.3.0/gcc/fortran/f95-lang.c:229 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Maybe it is related to this issue?