From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1C5D138381CE; Mon, 28 Nov 2022 16:03:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C5D138381CE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669651393; bh=f3GeGPr6fT9G9br/IfoYlDSezjUEndm47xdL6bq/qOo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cd7gT6SDTMzoioHt18PlW4SQ0rrVqGFTVNMLE/iwYvBCuQp0nFBBkDLVuzeQC9jQj fewAeTy+Y6i7wjIpBkp/5hJDcKPXfssRfJLp4GZlH6xQ1WfOSo5uih5hwEGouIXfkH ljo7r7RHJ1IA+G6ylwAJ2fm3SqCVwuoIkz1s/UGo= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107886] Problem witch std::latch, std::binary_semaphores in C++20 Date: Mon, 28 Nov 2022 16:03:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING 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=3D107886 --- Comment #14 from Jonathan Wakely --- (In reply to Jamaika from comment #11) > without #define __cpp_lib_atomic_wait 201907L You should not be defining this anyway, it's defined by the library when the feature is supported. You can't change that. Don't ever define these __cpp_* macros. (In reply to Jamaika from comment #12) > with 'latch.h' This is a third-party header that defines its own std::latch, it has nothin= g to do with GCC.=