From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 392E63858C50; Tue, 21 Feb 2023 13:13:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 392E63858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676985221; bh=xpyAf7br08Gbs8LJG4unT54Youu6nwjIg1TK/yjpzoY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kdm+tR38t3nE8yXz67UEr5IjWcuTUjg+Tc0BSi4txgvQn4eOJ3j9r/5RCzxusZCy0 cg0TioHB/GQnhWxni7KRHMGhoYwUBlqzsX4ulQK27wGiPrC2u6ILuKXSKzQ+pGBkiA tFs4Cj2SuARv8PVSU6izd2Rn5GutSTDDoAM6wz8s= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108375] [10/11/12 Regression] Some variably modified types not detected as such Date: Tue, 21 Feb 2023 13:13:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work priority short_desc 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=3D108375 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |13.0 Priority|P3 |P4 Summary|[10/11/12/13 Regression] |[10/11/12 Regression] Some |Some variably modified |variably modified types not |types not detected as such |detected as such --- Comment #10 from Richard Biener --- I assume this is now fixed for C on trunk. Since langhooks are a no-go when doing LTO it would be nice to have this bit in the middle-end - it should be possible to set it when laying out the type via the langhook. Of course what the C frontend calls "variably modified" (and the reasons it tests that) might not be the same as what the middle-end thinks (and why _it_ tests for it).=