From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B82F3818FD8; Sun, 11 Dec 2022 08:44:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B82F3818FD8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670748283; bh=XyVBeJDZoz+j8mj6Nno45X1B8hNT+i2Tj09G9E15OoI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xnxf6KQ0x/z11RB9OWJqYC+FvoZQGlky/0QGRhjlMeS5bL0KmVaCBZXdIbgPt9sBS sZmPY6K2Rrf8A5CtXj+jIYEKoijdR+gUKBHSXnB82Gvso9vcua67AtOjP57BJagyUc JAtEdDP+UGCoeyu5G38Ag462THP1vTY+Ds5Hnm/s= From: "rimvydas.jas at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/108056] backward compatibility issue between 11 and 12 Date: Sun, 11 Dec 2022 08:44:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rimvydas.jas at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108056 Rimvydas (RJ) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rimvydas.jas at gmail dot = com --- Comment #4 from Rimvydas (RJ) --- $ gfortran11 -g -fno-backtrace pr108056.f90 $ ./a.out && echo works works <--copy executable to system with gcc-13 trunk--> $ ./a.out=20 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=3D0x7fffffffe948, s=3D0x7fffffffe970) = 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=3D0x7fffffffe948, s=3D0x7fffffffe= 970) at /gcc_trunk/libgfortran/runtime/ISO_Fortran_binding.c:219 #1 0x000055555555524b in pub_f08ts (a=3D, b=3D) at pr108056.f90:29 #2 0x00005555555551f0 in bugsub (a=3D1, b=3D-3.08878791e-13) at pr108056.f= 90:35 #3 0x0000555555555313 in bug () at pr108056.f90:43 (gdb) p d->type $1 =3D 11 (gdb) p type $2 =3D 11 '\v' (gdb) p *s $3 =3D {base_addr =3D 0x7fffffffe9ec, offset =3D 0, dtype =3D {elem_len =3D= 4, version =3D 0, rank =3D 0 '\000', type =3D 11 '\v', attribute =3D 2}, span =3D 4, dim = =3D 0x7fffffffe998} (gdb) p/d BT_ASSUMED $4 =3D 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?=