From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E0C393858D38; Sat, 30 Mar 2024 07:27:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0C393858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711783631; bh=eqU14Ytsx5hvdMi33ISYWjeogt23XsKS0b9kYaBynKY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jPhZxBzCnCg+TWtTc1TLVPyNM4MuGOoEAeZgTkqEuuQoqznDUTgnLxbV9236sJkwc 7qb41BxrF3RK5rw1Akd1/rAYNnHOy0ws4MNdwq3a+G0UIgQ5CtM+pPsvGV+6V7lgAI FyvKxPCLYQvchDHqU1uMsYxLfB5gUjBxcKFJdlMw= 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: Sat, 30 Mar 2024 07:27:11 +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: 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 #9 from Paul Thomas --- (In reply to Paul Thomas from comment #8) > Created attachment 57835 [details] > An alternative fix for the PR >=20 > Hi Tomas, >=20 > Would you prefer the compiler to give warning rather than letting the > possible recursion to pass by silently? >=20 > f951: Warning: Non-RECURSIVE procedure =E2=80=98newcopyother=E2=80=99 fro= m module > =E2=80=98ftldynarrayintmodule=E2=80=99 is possibly calling itself recurs= ively in procedure > =E2=80=98newcopyother=E2=80=99. Declare it RECURSIVE or use =E2=80=98-fr= ecursive=E2=80=99 >=20 > Cheers >=20 > Paul After reflection, I have answered the question myself. The other part of the patch in resolve.cc should ensure that the recursion is detected in the mod= ule compilation. Paul=