From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 81204382EF12; Tue, 15 Nov 2022 06:52:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81204382EF12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668495134; bh=6X1tvXuJI6KYIDcNI6scG99SRcdJ5+1MBOwP6gmn6R4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V9Q5cufHNDRIFrJ99omLI2dkkXwx01FnpWYe2RKqn8q+MHNtFJW0GEmlmfJcz0fVm muqeaS+uePgzDuBMRmVRXSjaSdVBNopzNEMcxxGDW2V8FaNOQzoSStGAEXLgYOeA8j 1c7StvRvsIDaaKHsL2icXgnmHssufDcUle2d4LJ0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105180] [10/11/12/13 Regression] K&R style definition does not evaluate array size Date: Tue, 15 Nov 2022 06:52:14 +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: 11.2.1 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 10.5 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=3D105180 --- Comment #6 from Andrew Pinski --- Here is a self contained tester: int global =3D 0; int func(void) { global++; return global; } void crime(s, c) char *s; char c[static func()]; { } int main(void) { crime("1", "1"); if (global !=3D 1) __builtin_abort(); return 0; }=