From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC96B3858D35; Fri, 5 May 2023 20:26:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC96B3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683318402; bh=VFO2AsrJdf3RlAkVjHGkuFIc6Fp4KZnArdtDJAG4wH0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C9PvnWSFpC4mHCmGo8SB2BUyS0y46kt2KBEtgeQOeuyX8945C8S2gLummkDwwmC8W EQ1d66rPPxQPMbKAPMBLAV21Vh3bpVbzxI/bB1xug0V1J4mAlkZ0Ey4dL/kzFi712z mnEioYNFkhxQS784cXQvQo3BcGr3sA4txXDzJUSY= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60512] would be useful if gcc implemented __has_feature similary to clang Date: Fri, 05 May 2023 20:26:42 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: acoplan 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=3D60512 --- Comment #17 from Iain Sandoe --- (In reply to Iain Sandoe from comment #16) > (In reply to Iain Sandoe from comment #15) > > (In reply to Alex Coplan from comment #14) > > > I'm working on this. > >=20 > > I will rebase my WIP and push it somewhere - [ it has __has_feature and > > __has_extension components .. but likely bit rotten with changes to lib= cpp ] > > (sorry for being slow to do this - releases tie up all my Darwin time. >=20 > https://github.com/iains/gcc-git/tree/master-wip-has-extension >=20 > (it might not even build - I was hoping to have some time to refresh it - > but better publish now in case it's useful in any way ) heh, despite that I've not done anything to it since 2019 actually it builds and the tests pass - at least for C. Anyway, see what you think and how it lines up with your intended impl.=