From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5610D3854149; Fri, 5 May 2023 18:19:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5610D3854149 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683310768; bh=YJNb0GGrWs569R7aXhPp/Hgb6qzTVMSSphV4bT8WZws=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V387sFuNzPDY42FBoRKCd8NuhfOzAQJ3uGcHqA/bSgB4JkqES6jQaedGwNMr5xZa0 8uaOKjV3dkEPLEiNdpjvfw7Gp/CafO/7J/2PaBTN2bcZ1wR5hW0P1/TlAapwdJEl/l 2U3V3pzkIUDGfR9ToAS1cwLr9VdqzmzB3JfJGn0c= 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 18:19:27 +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 #16 from Iain Sandoe --- (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 libcp= p ] > (sorry for being slow to do this - releases tie up all my Darwin time. https://github.com/iains/gcc-git/tree/master-wip-has-extension (it might not even build - I was hoping to have some time to refresh it - b= ut better publish now in case it's useful in any way ) AFAIR the main blocker to progress was trying to decide how to represent the target/language/language version dependencies of the features and extensions (there's a rudimentary scheme at the moment but it probably is not flexible enough)=