From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C87A382CE23; Wed, 7 Dec 2022 00:55:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C87A382CE23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670374537; bh=YNPhj1YswX44kWEFiITivHT7arinQa41fH8GrHdKPcA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uFFhaKS7v0MVQHmZ/8MDuhbYUwyFooeZavnY9goPNmGlO8H3LJBWm96Oc0fJALUV5 JEABxICxn55pCjlbesSl82xsB8Vdz1XU4kxA7EMUUwEhSfMD5kFqTaVvN92Gj3zmrx xh3YgcnTUl7IljJICTF6slmnvR6PwOhp8mG+L68I= From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107980] va_start does not warn about an arbitrary number of arguments in C2x mode Date: Wed, 07 Dec 2022 00:55: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: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com 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=3D107980 --- Comment #12 from joseph at codesourcery dot com --- The standard rule about not using extra arguments means that any warnings=20 would need to avoid even converting those arguments from pp-tokens to=20 tokens; it's OK for them to contain pp-tokens that cannot be converted to=20 tokens. I think the accepted change to the standard was entirely clear about=20 ignoring the extra arguments; it wasn't some obscure non-obvious=20 consequence that such code would become valid.=