From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CBC613882023; Fri, 24 Mar 2023 23:09:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBC613882023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679699377; bh=Fv+hhqblyg46Aky4ah8V+id/wlb708ZQSLvILrASCw4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=l5tLVbpS8YVf6fMDQr6Xzhw25XvOdS2I4uf929hSMbh0BafL6rfOoQmdRKktUgbcq 5Z8dloAHGo1GIgvedIbtzy+cey+atgErHqvxFt/vn3pUfFIVT4uAdcPr0ApyoEGrow WM1nLnXQg9cr2rk9ASVuR00SgmnSCxGb0AxjVxuU= From: "muecker at gwdg dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/106465] ICE for VLA in struct in parameter of nested function Date: Fri, 24 Mar 2023 23:09:37 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: muecker at gwdg dot de X-Bugzilla-Status: NEW 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: 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=3D106465 --- Comment #4 from Martin Uecker --- This version works with 4.1.2 https://godbolt.org/z/x4v6aTv87 int h(void) { int g(int m, struct { char (*p)[m]; }* b) { return sizeof *b->p; } return g(5, 0); }=