From patchwork Tue Jul 16 08:53:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Merrill X-Patchwork-Id: 1132534 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-505123-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="K8p6LS15"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45nvMx0hbxz9sNf for ; Tue, 16 Jul 2019 18:54:20 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=grysIoyLYd2cez5U SAiD175L6Dy2lcMjmq6lCPRNuOFiayz6Zh/yWM7sIXAnVCAmaLuk9TW59lTXMLFg V/h9X+3Kb1ZT1S2hNBHGR4qVUkfs/r/Y/ZrwhFdSmsj9RTWEm2Bjm+y0h5OXeAt8 2yDdC3zfV3YSS/T29ItnSoEbUvg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=default; bh=ErnUANxWKq+nuZvPygdow2 szmtw=; b=K8p6LS15ZM3TZ5O0HhRkhS3XUHRLP2cTHwArX1APcT+Uzgh5z99Ni6 rK5spE1WmoqPoiCHwSjG2EvX1EBMzaDKYrYtToGo13GuC9zWvpLSatEtIY1wk25z nH2Re93WsHFKxLfZ+CczKGDYiRRfluaVAf/boAKS7QLurpNsBBZ+4= Received: (qmail 123303 invoked by alias); 16 Jul 2019 08:54:13 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 123291 invoked by uid 89); 16 Jul 2019 08:54:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: mail-wm1-f67.google.com Received: from mail-wm1-f67.google.com (HELO mail-wm1-f67.google.com) (209.85.128.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Jul 2019 08:54:12 +0000 Received: by mail-wm1-f67.google.com with SMTP id l2so17808957wmg.0 for ; Tue, 16 Jul 2019 01:54:12 -0700 (PDT) Received: from localhost.localdomain ([62.153.214.124]) by smtp.gmail.com with ESMTPSA id y6sm14611434wrp.12.2019.07.16.01.54.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 16 Jul 2019 01:54:09 -0700 (PDT) From: Jason Merrill To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [libstdc++ PATCH] Add parens around constraint in . Date: Tue, 16 Jul 2019 10:53:41 +0200 Message-Id: <20190716085341.1090-1-jason@redhat.com> MIME-Version: 1.0 X-IsSubscribed: yes C++20 concepts require parens around atomic constraints that are not primary-expressions. Tested x86_64-pc-linux-gnu, applying to trunk. * include/std/memory (uses_allocator_construction_args): Add parens around constraint. --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/std/memory | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) base-commit: 56e35b0b1490442b7c8f506febaf15d3a42f65e1 diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8e96a898483..a88e73836b2 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-07-16 Jason Merrill + + * include/std/memory (uses_allocator_construction_args): Add parens + around constraint. + 2019-07-12 Jonathan Wakely * testsuite/29_atomics/atomic_float/1.cc: Fix comment. diff --git a/libstdc++-v3/include/std/memory b/libstdc++-v3/include/std/memory index 3660f4d86de..3036802f8c3 100644 --- a/libstdc++-v3/include/std/memory +++ b/libstdc++-v3/include/std/memory @@ -261,7 +261,7 @@ get_pointer_safety() noexcept { return pointer_safety::relaxed; } uses_allocator_construction_args(const _Alloc& __a, _Args&&... __args) noexcept #if __cpp_concepts - requires ! _Std_pair<_Tp> + requires (! _Std_pair<_Tp>) #endif { return std::__uses_alloc_args<_Tp>(__a, std::forward<_Args>(__args)...);