From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CA6123858D39; Tue, 16 Apr 2024 22:17:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA6123858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713305831; bh=yFrnNj7tkcZGoo5SXZkkTF9v8oTHFpvQAx/ZEmSsw0M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JU9oyxwTHD2HZHv+twuKjRMlvNL11BPy41rstkWSOm6xo3krEAl/uME0uFw6qj2DT uE5vg2Zy2IFETdrzaRP7fj3A4336h9iBSMjkzC+v6ESqoleLEOCQcv9frgzXMDR6C2 wb91XrnhRfkasZ/oL2DWyLXFocwacaZ5txaR2l3I= From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/114618] Format produces incorrect output when contains 1x, ok when uses " " Date: Tue, 16 Apr 2024 22:17:10 +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: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D114618 --- Comment #6 from Jerry DeLisle --- Created attachment 57965 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57965&action=3Dedit Preliminary patch to fix several issues. The attached patch is very preliminary and appears to fix the X format issue and does some code factoring. I have yet to explore the same situation with= TR following the 19 '.' printed. This also fixes the problem with embedded garbage in the output. It does regression test with the new test cases, so getting close.=