From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1FEB03858C50; Thu, 1 Dec 2022 13:48:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FEB03858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669902508; bh=tFb8MlqqxHgZ1PZzVsvcaR1papnqpC4SQanNUtv0XR8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bH0UmOAKNHk5eMw3B6Tt/+1cHCtG73zHOdF+Nl8kWBL7b4n3HH6j7kvUmg4/jqoAv GeCDcCsNznFlpYd+QO9vMHIoOt0D/x4BKD73meM0krhzJ6OGLrKpv0MCLROZ5fPNAH Jpv+neOs/4PXpx69g/ulVjQ5R5UrMjyyZPXRIX8g= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107947] __has_c_attribute incorrectly identifies attribute as supported Date: Thu, 01 Dec 2022 13:48:28 +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: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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=3D107947 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski --- Yes it is supported with -std=3Dgnu99. The bug is in tzdata where it does: static [[noreturn]] void f(); That is invalid, the attribute cannot be in the middle of a declaration specification rather it should be before or after.=