From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2FAA53864832; Wed, 30 Jun 2021 22:59:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FAA53864832 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/101265] C2X [[maybe_unused]] ignored when placed after array declaration Date: Wed, 30 Jun 2021 22:59:33 +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.1.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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2021 22:59:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101265 --- Comment #3 from joseph at codesourcery dot com --- On Wed, 30 Jun 2021, gcc at alanwu dot email via Gcc-bugs wrote: > > [[attr1]] int [[attr2]] a[10] [[attr3]], b [[attr4]]; > > attr1 appertains to the variable declarations a and b, attr2 > > appertains to the type int, attr3 appertains to the variable > > declaration a, and attr4 appertains to the variable declaration b. That looks like an error in introductory text describing that proposal=20 (not text that was proposed for addition to the standard itself). I at=20 least mainly concentrate on the proposed changes to the standard text when= =20 reviewing the details of C standards proposals; mistakes of detail outside= =20 those changes aren't really important. The current working draft is=20 N2596, which has plenty of attributes-related changes that postdate the=20 original proposal for attributes support; you should search for the word=20 "appertain" there and disregard the older proposal.=