From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6BC1D385B52C; Wed, 15 Feb 2023 21:02:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BC1D385B52C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676494958; bh=8QKNpqMO2RCp/F6GwJyOOC0Icl1oCEv3yTxVPZTBC2A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cXMivzpCpLF7d2ZHTipQGKy9p8lp+LxBoyvx8y3aszujqlLtHSy8DiFr703KzCw4j +VphHR9qUov0HIxlmxMK7MsJ7UsFzAgs6YlENdaoVPpYLKcDhMkTMAAe6T+U7SLkYP AJeXUP2nM5UIv1Wmf7cKVwWuHJ/dUUJFOKAELoNQ= From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108796] Can't intermix C2x and GNU style attributes Date: Wed, 15 Feb 2023 21:02: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: rejects-valid 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=3D108796 --- Comment #6 from joseph at codesourcery dot com --- The logic is that GNU attributes are declaration specifiers (and can mix=20 anywhere with other declaration specifiers), but standard attributes=20 aren't declaration specifiers; rather, they come in specified positions=20 relative to declaration specifiers (the semantics before and after the=20 declaration specifiers are different), and in the middle isn't such a=20 position.=