From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10262 invoked by alias); 25 May 2011 23:47:24 -0000 Received: (qmail 10246 invoked by uid 22791); 25 May 2011 23:47:23 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp206.alice.it (HELO smtp206.alice.it) (82.57.200.102) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 May 2011 23:47:10 +0000 Received: from [192.168.1.4] (79.51.25.12) by smtp206.alice.it (8.5.124.08) id 4D49918D09D092EB; Thu, 26 May 2011 01:47:08 +0200 Message-ID: <4DDD9520.9070709@oracle.com> Date: Thu, 26 May 2011 00:25:00 -0000 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 MIME-Version: 1.0 To: Ian Lance Taylor CC: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: Re: Patch committed: Fix erasing with reference in old hashtable code References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2011-05/txt/msg01951.txt.bz2 On 05/26/2011 01:09 AM, Ian Lance Taylor wrote: > This patch fixes a problem with the old hashtable::erase code when the > caller passes a reference to an element in the table, the element is not > the first in the bucket, but it is equal to the first in the bucket. > This is PR 49060, and the patch and test case are from that PR with > minor tweaks. Bootstrapped and ran libstdc++ testsuite on > x86_64-unknown-linux-gnu. Committed to mainline. Thanks Ian. Paolo.