This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/77785] ICE in gfc_get_caf_token_offset, at fortran/trans-expr.c:1990
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Oct 2016 17:25:51 +0000
- Subject: [Bug fortran/77785] ICE in gfc_get_caf_token_offset, at fortran/trans-expr.c:1990
- Auto-submitted: auto-generated
- References: <bug-77785-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77785
--- Comment #4 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Indeed, case from comment 0 is fixed now.
Still pending :
$ cat z2.f90
module m
type t
real, allocatable :: a
end type
contains
subroutine s(x)
class(t) :: x[*]
allocate (x%a)
end
end
$ cat z3.f90
module m
type t
real, pointer :: a
end type
contains
subroutine s(x)
class(t) :: x[*]
allocate (x%a)
end
end
$ gfortran-7-20161002 -fcoarray=single -c z2.f90
$ gfortran-7-20161002 -fcoarray=lib -c z2.f90
z2.f90:8:0:
allocate (x%a)
internal compiler error: Segmentation fault
0xc29b8f crash_signal
../../gcc/toplev.c:337
0x764ee5 gfc_get_caf_token_offset(gfc_se*, tree_node**, tree_node**,
tree_node*, tree_node*, gfc_expr*)
../../gcc/fortran/trans-expr.c:1979
0x7acbb6 gfc_trans_allocate(gfc_code*)
../../gcc/fortran/trans-stmt.c:5895
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