Message ID | 5e13b454-0722-01ef-8e62-e88654fe9021@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7DF3B3858435 for <patchwork@sourceware.org>; Mon, 27 Sep 2021 20:25:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DF3B3858435 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1632774356; bh=tfaVeYmvO4S7nN3aHKwJtnfuBdSec8Z7VtNrL2Clk0w=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=w83oDz9GkVzkxaIX8CFFf7gW2EWTFVbMykPNMyRZSPsKD3bLGUcHAXSgdPLmEMIFp 3wZ1TAARiIV+jdpU68MsjuOElQ2mvGp382A246i+jjAunNyjT5n0jzmEE0UPcmZAWl ZayaqxKCvm7HVnS0sUqGR+0eTnvzI5F20R44Amf4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 39ECF3858432; Mon, 27 Sep 2021 20:25:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 39ECF3858432 Received: by mail-wr1-x433.google.com with SMTP id u18so54086137wrg.5; Mon, 27 Sep 2021 13:25:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language; bh=tfaVeYmvO4S7nN3aHKwJtnfuBdSec8Z7VtNrL2Clk0w=; b=SQdeLVf0SPPxq70pbpxMGyz/pYtdEvkvpZxMAjf7zxB1/NLjVVZurRdlZN41i/cIdV kxCeeo25riNhtTK5r86kogfAwFtq7QRyZhxFtTrWCVD7IyBVNZyfY9LAnUfvnnNbGPkZ XCRRqUBJ8ilTboROL0gCp1s+RNEiolgOQePx0U5dRcXvN4dmD6zNX2bDukMjJUEWrW+k 892j+tOQPfF8N7sfyEtrfC+/rKNAZSSzJfG0AeVni24RcfWPI/BSmitqZs/7V2BXmL5o AR311P4LTnMGSMVIvtJuo7BNlEyTv0Kz/l3D0ZYCNBI1/nhhpbZQstvo0qZhYOesdnjD FA9A== X-Gm-Message-State: AOAM531eTfhB5VPY/KoL+KFWXep8ZdjRQQ0c9U67J1JCAvCpRP22qXBk 3o8ccCl7zqMdyuZZ1w2x6J+CwRM9IvM= X-Google-Smtp-Source: ABdhPJyQr7CRGoX4U41+rI3ZIPrfgpFXkybf2aQhuzl8lLbMG+crCG0IcsjOseGd8FMMWaM6ztqAjw== X-Received: by 2002:a5d:4cc6:: with SMTP id c6mr2178279wrt.108.1632774325932; Mon, 27 Sep 2021 13:25:25 -0700 (PDT) Received: from ?IPv6:2a01:e0a:1dc:b1c0:18dc:4a70:745d:2be0? ([2a01:e0a:1dc:b1c0:18dc:4a70:745d:2be0]) by smtp.googlemail.com with ESMTPSA id 15sm478920wmk.48.2021.09.27.13.25.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Sep 2021 13:25:25 -0700 (PDT) To: "libstdc++@gcc.gnu.org" <libstdc++@gcc.gnu.org> Subject: Fix 48631_neg test in _GLIBCXX_VERSION_NAMESPACE mode Message-ID: <5e13b454-0722-01ef-8e62-e88654fe9021@gmail.com> Date: Mon, 27 Sep 2021 22:25:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------4DC202A0D160126E7DF426CD" Content-Language: en-US X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: =?utf-8?q?Fran=C3=A7ois_Dumont_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Fran=C3=A7ois_Dumont?= <frs.dumont@gmail.com> Cc: gcc-patches <gcc-patches@gcc.gnu.org> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series |
Fix 48631_neg test in _GLIBCXX_VERSION_NAMESPACE mode
|
|
Commit Message
François Dumont
Sept. 27, 2021, 8:25 p.m. UTC
Here is a small patch to fix a test which fails in _GLIBCXX_VERSION_NAMESPACE mode. IMHO it would be better to avoid putting <type_traits> content in versioned namespace, no ? There is of course more work to do, so for now here is the simpler approach. Ok to commit ? François
Comments
On Mon, 27 Sept 2021 at 21:26, François Dumont via Libstdc++ <libstdc++@gcc.gnu.org> wrote: > > Here is a small patch to fix a test which fails in > _GLIBCXX_VERSION_NAMESPACE mode. > > IMHO it would be better to avoid putting <type_traits> content in > versioned namespace, no ? > > There is of course more work to do, so for now here is the simpler approach. > > Ok to commit ? Leaving the pattern ending with just "struct" isn't very useful. Wouldn't it be better to do: // { dg-prune-output "no type named 'type' in" } or just: // { dg-prune-output "enable_if" } ? Either of those is OK to commit.
On 27/09/21 11:06 pm, Jonathan Wakely wrote: > On Mon, 27 Sept 2021 at 21:26, François Dumont via Libstdc++ > <libstdc++@gcc.gnu.org> wrote: >> Here is a small patch to fix a test which fails in >> _GLIBCXX_VERSION_NAMESPACE mode. >> >> IMHO it would be better to avoid putting <type_traits> content in >> versioned namespace, no ? No opinion on this, you prefer to use consistently the versioned namespace ? >> >> There is of course more work to do, so for now here is the simpler approach. >> >> Ok to commit ? > Leaving the pattern ending with just "struct" isn't very useful. > Wouldn't it be better to do: > > // { dg-prune-output "no type named 'type' in" } > > or just: > > // { dg-prune-output "enable_if" } > > ? > > Either of those is OK to commit. Done with "enable_if"
On Tue, 28 Sept 2021 at 21:21, François Dumont via Libstdc++ <libstdc++@gcc.gnu.org> wrote: > > On 27/09/21 11:06 pm, Jonathan Wakely wrote: > > On Mon, 27 Sept 2021 at 21:26, François Dumont via Libstdc++ > > <libstdc++@gcc.gnu.org> wrote: > >> Here is a small patch to fix a test which fails in > >> _GLIBCXX_VERSION_NAMESPACE mode. > >> > >> IMHO it would be better to avoid putting <type_traits> content in > >> versioned namespace, no ? > > No opinion on this, you prefer to use consistently the versioned namespace ? I haven't though about it in much detail, but I think it's safer to keep them in the versioned namespace. Can we be sure that we'd never need to make any incompatible changes to anything in that header? It seems likely, but I'm not entirely confident. > >> There is of course more work to do, so for now here is the simpler approach. > >> > >> Ok to commit ? > > Leaving the pattern ending with just "struct" isn't very useful. > > Wouldn't it be better to do: > > > > // { dg-prune-output "no type named 'type' in" } > > > > or just: > > > > // { dg-prune-output "enable_if" } > > > > ? > > > > Either of those is OK to commit. > > Done with "enable_if" Thanks.
diff --git a/libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc b/libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc index 3e80b73603e..f710806ef42 100644 --- a/libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc +++ b/libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc @@ -26,4 +26,4 @@ struct D : B { }; D d; std::default_delete<B[]> db; typedef decltype(db(&d)) type; // { dg-error "no match" } -// { dg-prune-output "no type named 'type' in 'struct std::enable_if" } +// { dg-prune-output "no type named 'type' in 'struct" }