https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108056
Rimvydas (RJ) <rimvydas.jas at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rimvydas.jas at gmail dot com --- Comment #4 from Rimvydas (RJ) <rimvydas.jas at gmail dot com> --- $ gfortran11 -g -fno-backtrace pr108056.f90 $ ./a.out && echo works works <--copy executable to system with gcc-13 trunk--> $ ./a.out Internal Error: Invalid type in descriptor $ gdb ./a.out (gdb) b _gfortrani_internal_error (gdb) b ISO_Fortran_binding.c:219 (gdb) r _gfortran_gfc_desc_to_cfi_desc(d_ptr=0x7fffffffe948, s=0x7fffffffe970) at /gcc_trunk/libgfortran/runtime/ISO_Fortran_binding.c:219 219 internal_error (NULL, "Invalid type in descriptor"); (gdb) where #0 _gfortran_gfc_desc_to_cfi_desc (d_ptr=0x7fffffffe948, s=0x7fffffffe970) at /gcc_trunk/libgfortran/runtime/ISO_Fortran_binding.c:219 #1 0x000055555555524b in pub_f08ts (a=<unknown type in /tmp/pr108056/a.out, CU 0x53d, DIE 0x5fe>, b=<unknown type in /tmp/pr108056/a.out, CU 0x53d, DIE 0x60b>) at pr108056.f90:29 #2 0x00005555555551f0 in bugsub (a=1, b=-3.08878791e-13) at pr108056.f90:35 #3 0x0000555555555313 in bug () at pr108056.f90:43 (gdb) p d->type $1 = 11 (gdb) p type $2 = 11 '\v' (gdb) p *s $3 = {base_addr = 0x7fffffffe9ec, offset = 0, dtype = {elem_len = 4, version = 0, rank = 0 '\000', type = 11 '\v', attribute = 2}, span = 4, dim = 0x7fffffffe998} (gdb) p/d BT_ASSUMED $4 = 11 /* NOTE: Since GCC 12, the FE generates code to do the conversion directly without calling this function. */ void gfc_desc_to_cfi_desc (CFI_cdesc_t **d_ptr, const gfc_array_void *s) { Looks to be backwards compatibility issue, BT_ASSUMED not handled?