From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C5D913858D20; Fri, 29 Mar 2024 14:10:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5D913858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711721421; bh=wfM4YR5mN/MO5SqbuD+GHwFqY2lxLmr7fjLY6JGIzWM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GaKqClfqeHTrOqFMOVAuwnPgpazLWDTE77DrZ6PTAlzz1beKeCow9F98Phm9b59fG QEW+4i//pJLVPVs7Ao57l9QtlYvEWS1nav0snO+sEVa4Ko2XbBL0gCvhNKngLlztkG cx1MF24str81YG+9J7X6cZq+jw5eb7wHt1sjLDZM= From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/112407] [13/14 Regression] Fix for PR37336 triggers an ICE in gfc_format_decoder while constructing a vtab Date: Fri, 29 Mar 2024 14:10:18 +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: 13.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 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=3D112407 --- Comment #8 from Paul Thomas --- Created attachment 57835 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57835&action=3Dedit An alternative fix for the PR Hi Tomas, Would you prefer the compiler to give warning rather than letting the possi= ble recursion to pass by silently? f951: Warning: Non-RECURSIVE procedure =E2=80=98newcopyother=E2=80=99 from = module =E2=80=98ftldynarrayintmodule=E2=80=99 is possibly calling itself recursiv= ely in procedure =E2=80=98newcopyother=E2=80=99. Declare it RECURSIVE or use =E2=80=98-frec= ursive=E2=80=99 Cheers Paul=