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

--- Comment #2 from Vittorio Zecca <zeccav at gmail dot com> ---
! gfortran ICE in gfc_conv_expr_descriptor at fortran/trans-array.c
      interface
       function f()
       pointer f
       end
      end interface
      type t
      real,pointer ::  p(:)
      end type
      type(t) u
      u=t(f())
      end


gfortran gfbug43.f
gfbug43.f:12:0:

       u=t(f())
 1
internal compiler error: in gfc_conv_expr_descriptor, at
fortran/trans-array.c:6534
0x6b5b60 gfc_conv_expr_descriptor(gfc_se*, gfc_expr*)
        ../../gcc-5.2.0/gcc/fortran/trans-array.c:6534
0x6d513b gfc_trans_subcomponent_assign
        ../../gcc-5.2.0/gcc/fortran/trans-expr.c:6802
0x6d4b3b gfc_trans_structure_assign
        ../../gcc-5.2.0/gcc/fortran/trans-expr.c:7036
0x6d6084 gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../gcc-5.2.0/gcc/fortran/trans-expr.c:7065
0x6d7060 gfc_trans_assignment_1
        ../../gcc-5.2.0/gcc/fortran/trans-expr.c:8947
0x6a4545 trans_code
        ../../gcc-5.2.0/gcc/fortran/trans.c:1665
0x6c3e83 gfc_generate_function_code(gfc_namespace*)
        ../../gcc-5.2.0/gcc/fortran/trans-decl.c:5841
0x662270 translate_all_program_units
        ../../gcc-5.2.0/gcc/fortran/parse.c:5340
0x662270 gfc_parse_file()
        ../../gcc-5.2.0/gcc/fortran/parse.c:5537
0x6a1695 gfc_be_parse_file
        ../../gcc-5.2.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.

Reply via email to