From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7903C3858C1F; Wed, 12 Jul 2023 16:04:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7903C3858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689177865; bh=K0iV9K0AJv1n6F5F8YS5yliWb7ZxvAciNp66W9ZHgxs=; h=From:To:Subject:Date:From; b=Y/ECGQjv8kuX4bNHp01bpmRToZFk5cVrgmldrC/mbkVHGGIscHf2DUQu84ebfzsQM caIZlqdnHIE0p5WS+C6pakg0O2hRQgRC9lciROKvFUNsZ0AmZlB5UYTjxUDKOyIaDK ifgnHdQxOcaDl3D17bpsOvOUTuwx2eTId3Bx1RG4= From: "kyle.shores44 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110644] New: Error in gfc_format_decoder Date: Wed, 12 Jul 2023 16:04:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kyle.shores44 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D110644 Bug ID: 110644 Summary: Error in gfc_format_decoder Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: kyle.shores44 at gmail dot com Target Milestone: --- I moved from gcc 11 to gcc 13.1 recently. I have a library that compiled wi= th gcc 11 but cannot be compiled with gcc 13 without moving use statements out= of functions and subroutines and also changing the order of the use statements. I would like to provide a small example but I could not figure out how to replicate this when writing a smaller program. However, here is a PR (https://github.com/NCAR/tuv-x/pull/272) that shows changes to files that a= llow them to compile. I have not been able to compile the entire project yet, bu= t I have noticed that in general if I put the use statements in the order that = the imported content is used in the rest of the file that I can compile. Sadly, this pattern doesn't always seem to be true. After I finish getting the full project compiled, maybe I'll learn enough to create a smaller example that better reproduces the error. The error I get is not very useful: `in gfc_format_decoder, at fortran/error.cc:1078` I added the line to get the bug report, but I don't see any temporary files created.=