From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AC97F3858C27; Fri, 28 Jul 2023 20:35:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC97F3858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690576529; bh=ehdgEhqEljI0YYaAs4+HmVF9HS0wUSfVASiuOXjkVtg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C/bmecNMVTRDO2Pvq/mOxnKhVdOPE28E3MivRdenY+DB+azI753Wf+1eUaEQ0gmLz zkWhwYElc42hkjsFVHzoLI7GimKzAR32tSMARSUqZR2LPJBjZpPBMTwuvOiKsdFuIx 5rLk49v6X1VVxaZ08dXAIey5kXwt1ICnZ05PlKuw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110848] Consider enabling -Wvla by default in C++ modes Date: Fri, 28 Jul 2023 20:35:29 +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: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D110848 --- Comment #4 from Andrew Pinski --- Maybe my issue is this has been a documented extension for 20 years now. -pedantic or -std=3Dc++NN has always rejected it like it should. GCC has ot= her extensions which folks could use by accident too (like statement expression= s). Why is VLA special here?=