From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AEE4C3858415; Thu, 23 Nov 2023 02:33:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEE4C3858415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700706787; bh=gjYo/53bbVu/18y2rsrlhfb/EvU463myPdaxXQOOMGk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q/5uEAq82q6V8FEkRQJ6CNfx/YEb5dVu8pXBGOAKWdDUOwDJ+tTdT2n+FyQEWyWU8 hRkMAVGHUyRh2QD4XKujdnJurQPFD5YaO/1Izx7CE9w2UuWpbCrVgjh0qX7FpPatMd fS/8Wf8ENda9qZHsSXvfjUjttAY2MpLQCrevwSDA= From: "tanksherman27 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110734] Attributes cannot be applied to asm statements Date: Thu, 23 Nov 2023 02:33:05 +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.1.1 X-Bugzilla-Keywords: diagnostic, inline-asm X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tanksherman27 at gmail dot com 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 #5 from Julian Waters --- Note: Trying this with a top level asm gives me: $ g++ -O3 -flto=3Dauto -std=3Dc++14 -pedantic -Wpedantic -fno-omit-frame-po= inter exceptions.cpp exceptions.cpp:8:1: error: expected unqualified-id before 'asm' 8 | asm ("nop"); | ^~~ So while it seems the errors are different, it fundamentally is the same is= sue=