[Bug fortran/105152] New: [9/10/11/12 Regression] ICE in gfc_conv_gfc_desc_to_cfi_desc, at fortran/trans-expr.cc:5647
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Apr 4 16:47:02 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105152
Bug ID: 105152
Summary: [9/10/11/12 Regression] ICE in
gfc_conv_gfc_desc_to_cfi_desc, at
fortran/trans-expr.cc:5647
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started with r9 :
$ cat z1.f90
program p
use iso_c_binding
type, bind(c) :: t
integer(c_int) :: a
end type
interface
function f(x) bind(c) result(z)
import :: c_int, t
type(t) :: x(:)
integer(c_int) :: z
end
end interface
class(*), allocatable :: y(:)
n = f(y)
end
$ cat z2.f90
program p
use iso_c_binding
type, bind(c) :: t
integer(c_int) :: a
end type
class(*), allocatable :: y(:)
n = f(y)
contains
function f(x) bind(c) result(z)
type(t) :: x(:)
integer(c_int) :: z
end
end
$ gfortran-8 -c z1.f90
$
$ gfortran-12-20220403 -c z1.f90
z1.f90:14:11:
14 | n = f(y)
| 1
internal compiler error: in gfc_conv_gfc_desc_to_cfi_desc, at
fortran/trans-expr.cc:5647
0x7e2e52 gfc_conv_gfc_desc_to_cfi_desc
../../gcc/fortran/trans-expr.cc:5647
0x7e7042 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
../../gcc/fortran/trans-expr.cc:6811
0x7dc7ba gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.cc:9405
0x7edae1 gfc_trans_assignment_1
../../gcc/fortran/trans-expr.cc:11693
0x7ab6c7 trans_code
../../gcc/fortran/trans.cc:1916
0x7d4b7e gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.cc:7654
0x75734e translate_all_program_units
../../gcc/fortran/parse.cc:6669
0x75734e gfc_parse_file()
../../gcc/fortran/parse.cc:6956
0x7a47df gfc_be_parse_file
../../gcc/fortran/f95-lang.cc:216
More information about the Gcc-bugs
mailing list