From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3BB213858D35; Wed, 8 Nov 2023 10:51:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BB213858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699440677; bh=zWuwfv5jV4weDgbvu+fNRXRF00Lc6VXt3n1/WBUKcwQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Xkw6BtPqqs7Q+8Gr0USgipGnWPkiX8oODc70rtDFKXPxv0BzRVxjAvx9Rxhk7sPfW W0nrpA5D32whar6R/mCnhTobRbJa9JAPG/e/dsT5uCWsLEBzkx70SrG3PSQ+5keB18 va3MN3VV7TflMwpPGoEtleyRUEvtV82Nwo+LFHO8= 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: Wed, 08 Nov 2023 10:51:15 +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: assigned_to 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 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gn= u.org --- Comment #4 from Paul Thomas --- Created attachment 56531 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56531&action=3Dedit Fix for this PR The bug comes about because the vtable is being declared in one of the spec= ific procedures typebound to the derived type, thereby making the procedure implicitly recursive. The attached fix gives this specific procedure the recursive attribute. The patch regression tests OK. I have yet to understand why the vtable is not being declared in the contai= ning module namespace. I'll dig around some more after I have done some paid work :-) Perhaps you could try a build with this patch and -frecursive removed. Paul=