From patchwork Mon Sep 27 20:25:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Fran=C3=A7ois_Dumont?= X-Patchwork-Id: 45484 Return-Path: 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 ; 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" 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-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Fran=C3=A7ois_Dumont_via_Gcc-patches?= From: =?utf-8?q?Fran=C3=A7ois_Dumont?= Reply-To: =?utf-8?q?Fran=C3=A7ois_Dumont?= Cc: gcc-patches Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Here is a small patch to fix a test which fails in _GLIBCXX_VERSION_NAMESPACE mode. IMHO it would be better to avoid putting 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 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 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" }