This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/77884] New: ICE in gfc_get_tree_for_caf_expr, at fortran/trans-expr.c:1963


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

            Bug ID: 77884
           Summary: ICE in gfc_get_tree_for_caf_expr, at
                    fortran/trans-expr.c:1963
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Invalid code, affects versions 5, 6 and 7. No ICE with 4.9.0.


$ cat z1.f90
program p
   type t
   end type
   type(t) :: x(2)
   call s(x)
contains
   subroutine s(x)
      class(t) :: x(2)[*]
   end
end


$ cat z4.f90
program p
   real :: x(2)
   call s(x)
contains
   subroutine s(x)
      class(*) :: x(2)[*]
   end
end


$ gfortran-7-20161002 -fcoarray=lib -c z1.f90
z1.f90:5:0:

    call s(x)

internal compiler error: in gfc_get_tree_for_caf_expr, at
fortran/trans-expr.c:1963
0x7597b3 gfc_get_tree_for_caf_expr(gfc_expr*)
        ../../gcc/fortran/trans-expr.c:1963
0x75da15 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:5798
0x7a4dc4 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
        ../../gcc/fortran/trans-stmt.c:407
0x7243fa trans_code
        ../../gcc/fortran/trans.c:1787
0x7538f8 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6257
0x6de270 translate_all_program_units
        ../../gcc/fortran/parse.c:5940
0x6de270 gfc_parse_file()
        ../../gcc/fortran/parse.c:6146
0x720e82 gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:198

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]