https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78492

G. Steinmetz <gs...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gs...@t-online.de

--- Comment #4 from G. Steinmetz <gs...@t-online.de> ---

Update with a simplification :


$ cat z1.f90
module m
   type t
   contains
      procedure, non_overridable :: g
      generic :: f => g
   end type
contains
   recursive function g(x)
      class(t), intent(in) :: x
      print *, x%f()
   end
end


$ gfortran-9-20181111 -c z1.f90
z1.f90:10:0:

   10 |       print *, x%f()
      |
internal compiler error: in conv_function_val, at fortran/trans-expr.c:3810
0x6f95e0 conv_function_val
        ../../gcc/fortran/trans-expr.c:3809
0x6f95e0 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
        ../../gcc/fortran/trans-expr.c:6300
0x6fa29c gfc_conv_function_expr
        ../../gcc/fortran/trans-expr.c:6928
0x6ee90a gfc_conv_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.c:8039
0x6f43b5 gfc_conv_expr_reference(gfc_se*, gfc_expr*, bool)
        ../../gcc/fortran/trans-expr.c:8184
0x71b007 gfc_trans_transfer(gfc_code*)
        ../../gcc/fortran/trans-io.c:2584
0x6c0067 trans_code
        ../../gcc/fortran/trans.c:2038
0x718afe build_dt
        ../../gcc/fortran/trans-io.c:2026
0x6c0047 trans_code
        ../../gcc/fortran/trans.c:2010
0x6e7674 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6509
0x6c3b39 gfc_generate_module_code(gfc_namespace*)
        ../../gcc/fortran/trans.c:2216
0x67440b translate_all_program_units
        ../../gcc/fortran/parse.c:6112
0x67440b gfc_parse_file()
        ../../gcc/fortran/parse.c:6328
0x6bc89f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to