From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3D1E63858CDA; Fri, 1 Dec 2023 05:53:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D1E63858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701409983; bh=/A+GKe/c+AQLml3FYwN7/tosVGr4n7R0iFXaYf++LOI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=R7phXwltpQnR4iDXqXOemrlPrP2zIU1zUW36lO6P8izX9xsW88JqtnrgZ8KcNZ3tO AZqkXmmqDr15wR/Om97rk86xb934QcM0Rir6Saa05L50kEYSDs91dL+DqoNtu/Qi3o /sD1INzD80/dqRyta02YJb9+pTtESlsRNHwrXq+o= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110734] Attributes cannot be applied to asm declaration Date: Fri, 01 Dec 2023 05:53:02 +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.2.0 X-Bugzilla-Keywords: diagnostic, inline-asm X-Bugzilla-Severity: enhancement X-Bugzilla-Who: xry111 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: --- 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=3D110734 --- Comment #16 from Xi Ruoyao --- (In reply to Xi Ruoyao from comment #15) > Alright, this is a C++ issue and I mistakenly assumed it was C. Note that in C++ we have some inconsistency with the standard. In the stan= dard asm(...) are "declarations" but in GNU C++ asm(...) are always "statements"= .=