[Bug fortran/77785] ICE in gfc_get_caf_token_offset, at fortran/trans-expr.c:1990
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Oct 5 17:27:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77785
--- Comment #5 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Related :
$ cat z4.f90
module m
type t
real, allocatable :: a(:)
end type
contains
subroutine s(x)
class(t) :: x[*]
allocate (x%a(2))
end
end
$ cat z5.f90
module m
type t
real, pointer :: a(:)
end type
contains
subroutine s(x)
class(t) :: x[*]
allocate (x%a(2))
end
end
$ gfortran-7-20161002 -fcoarray=single -c z4.f90
$ gfortran-7-20161002 -fcoarray=lib -c z4.f90
z4.f90:8:0:
allocate (x%a(2))
internal compiler error: in gfc_conv_descriptor_token, at
fortran/trans-array.c:305
0x72afed gfc_conv_descriptor_token(tree_node*)
../../gcc/fortran/trans-array.c:303
0x73746e gfc_array_allocate(gfc_se*, gfc_expr*, tree_node*, tree_node*,
tree_node*, tree_node*, tree_node*, tree_node**, gfc_expr*, tree_node*, bool)
../../gcc/fortran/trans-array.c:5544
0x7ac275 gfc_trans_allocate(gfc_code*)
../../gcc/fortran/trans-stmt.c:5799
0x7240f7 trans_code
../../gcc/fortran/trans.c:1870
0x7538f8 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6257
0x728a49 gfc_generate_module_code(gfc_namespace*)
../../gcc/fortran/trans.c:2088
0x6de19d translate_all_program_units
../../gcc/fortran/parse.c:5927
0x6de19d gfc_parse_file()
../../gcc/fortran/parse.c:6146
0x720e82 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:198
More information about the Gcc-bugs
mailing list