[Bug fortran/77940] New: ICE in walk_coarray, at fortran/trans-array.c:6684
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Tue Oct 11 18:37:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77940
Bug ID: 77940
Summary: ICE in walk_coarray, at fortran/trans-array.c:6684
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: ---
With invalid code, down to at least 4.8 :
$ cat z1.f90
module m
type t
end type
contains
subroutine s1(x)
class(t) :: x[*]
end
subroutine s2(x)
class(t) :: x(2)
call s1(x(1))
end
end
$ gfortran-7-20161009 -fcoarray=single z1.f90
z1.f90:10:0:
call s1(x(1))
internal compiler error: in walk_coarray, at fortran/trans-array.c:6684
0x73ddf0 walk_coarray
../../gcc/fortran/trans-array.c:6684
0x73ddf0 gfc_conv_expr_descriptor(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-array.c:6762
0x75e803 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:5372
0x7a4dc4 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
../../gcc/fortran/trans-stmt.c:407
0x72439a trans_code
../../gcc/fortran/trans.c:1787
0x7538b8 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6257
0x7289e9 gfc_generate_module_code(gfc_namespace*)
../../gcc/fortran/trans.c:2088
0x6de0cd translate_all_program_units
../../gcc/fortran/parse.c:5927
0x6de0cd gfc_parse_file()
../../gcc/fortran/parse.c:6146
0x720e22 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:198
More information about the Gcc-bugs
mailing list