From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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" Cc: gcc-patches From: =?UTF-8?Q?Fran=c3=a7ois_Dumont?= 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: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2021 20:25:28 -0000 This is a multi-part message in MIME format. --------------4DC202A0D160126E7DF426CD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------4DC202A0D160126E7DF426CD Content-Type: text/x-patch; charset=UTF-8; name="48631_neg.cc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="48631_neg.cc.patch" 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" } --------------4DC202A0D160126E7DF426CD--