From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AD3BD3858D35; Wed, 15 Feb 2023 03:47:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD3BD3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676432876; bh=7brqb9gEe+C41ukbttrJFqBqKwJ+g8RgOOny/hn3H+8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pnQu04h8feOXDWhMZlNa7jcGVUVVgeY37R2qXg5UB4yVMeyLq/amu0SB6ikSXD/iW BxtzeUq3kzx4rt5zgFyMBEbK0ei9UjMrcx+Df15PnWg45lQRtYqLcrp0PSRg4Fbdv4 mxeph/ae66U2RYnLYm5SxoqUJqM/ZFDNVoFiX2U8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108796] Can't intermix C2x and GNU style attributes Date: Wed, 15 Feb 2023 03:47:56 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: short_desc 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 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|GCC 13 accepts [[noreturn]] |Can't intermix C2x and GNU |attribute without -std=3Dc2x |style attributes --- Comment #5 from Andrew Pinski --- Simple testcase:=20 __attribute__((noreturn)) [[noreturn]] void foo(void) { while(true); } The C++ front-end accepts this but not the C front-end.=