From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 98C6A386102D; Mon, 11 Jan 2021 16:18:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98C6A386102D From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBmb3J0cmFuLzkzNTI0XSBbSVNPIEMgQmluZGluZ11bRjIw?= =?UTF-8?B?MThdIENGSV9hbGxvY2F0ZSDigJMgZWxlbV9zaXplIG1pc2hhbmRsZWQgKyBz?= =?UTF-8?B?bSB3cm9uZ2x5IHNldD8=?= Date: Mon, 11 Jan 2021 16:18:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2021 16:18:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93524 --- Comment #1 from Tobias Burnus --- Also related to this issue: https://gcc.gnu.org/pipermail/fortran/2021-January/055581.html: In my understanding (see linked email and spec quote in comment 0), CFI_type_signed_char is an integer type =E2=80=93 and, hence, it should not= be handled at the following place =E2=80=93 as pointed out by Harris Snyder in that em= ail: 'CFI_establish' in libgfortran/runtime/ISO_Fortran_binding.c, circa line 34= 8: if (type =3D=3D CFI_type_char || type =3D=3D CFI_type_ucs4_char || type =3D=3D CFI_type_signed_char || type =3D=3D CFI_type_struct || type =3D=3D CFI_type_other) dv->elem_len =3D elem_len; The value is later used for the stride multiplier (sm) =E2=80=93 hence, it = causes problems if it is set wrongly (to 0). TESTCASE: See linked email.=