[Bug fortran/88624] [Coarray] Rejects allocatable coarray passed as a dummy argument
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Dec 9 19:39:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88624
G. Steinmetz <gscfq@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gscfq@t-online.de
--- Comment #2 from G. Steinmetz <gscfq@t-online.de> ---
Update :
$ cat z1.f90
subroutine g(x)
real, allocatable :: x(:)[:]
call h(x)
contains
subroutine h(z)
real :: z(:)[*]
end
end
$ gfortran-10-20191208 -c z1.f90 -fcoarray=lib
z1.f90:3:0:
3 | call h(x)
|
internal compiler error: in gfc_conv_procedure_call, at
fortran/trans-expr.c:6579
0x710ece 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:6578
0x745888 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
../../gcc/fortran/trans-stmt.c:406
0x6d6981 trans_code
../../gcc/fortran/trans.c:1932
0x6ffb24 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6801
0x688be6 translate_all_program_units
../../gcc/fortran/parse.c:6302
0x688be6 gfc_parse_file()
../../gcc/fortran/parse.c:6541
0x6d306f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210
More information about the Gcc-bugs
mailing list