Re: Patch committed: Fix erasing with reference in old hashtable code

2011-05-25 Thread Paolo Carlini
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

Patch committed: Fix erasing with reference in old hashtable code

2011-05-25 Thread Ian Lance Taylor
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. Boo