From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37937 invoked by alias); 26 Nov 2018 12:12:37 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 37918 invoked by uid 89); 26 Nov 2018 12:12:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:864, HContent-Transfer-Encoding:8bit X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Nov 2018 12:12:35 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ABE06307CEBD; Mon, 26 Nov 2018 12:12:34 +0000 (UTC) Received: from localhost (unknown [10.33.36.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5461D5C63A; Mon, 26 Nov 2018 12:12:34 +0000 (UTC) Date: Mon, 26 Nov 2018 12:12:00 -0000 From: Jonathan Wakely To: =?iso-8859-1?Q?Fran=E7ois?= Dumont Cc: "libstdc++@gcc.gnu.org" , gcc-patches Subject: Re: Fix hashtable memory leak Message-ID: <20181126121233.GR28365@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-11/txt/msg02068.txt.bz2 On 24/11/18 22:58 +0100, François Dumont wrote: >--- a/libstdc++-v3/testsuite/23_containers/unordered_set/allocator/move_assign.cc >+++ b/libstdc++-v3/testsuite/23_containers/unordered_set/allocator/move_assign.cc >@@ -18,6 +18,8 @@ > // { dg-do run { target c++11 } } > > #include >+#include >+ > #include > #include > #include >@@ -27,7 +29,9 @@ using __gnu_test::counter_type; > > void test01() > { >- typedef propagating_allocator alloc_type; >+ { >+ typedef propagating_allocator+ __gnu_cxx::throw_allocator_limit> alloc_type; You don't seem to need the throw_allocator here, can't you use __gnu_test::tracker_allocator from instead?