RFA (pointer-set): PATCH for c++/57899 (infinite recursion with std::bind)

Jason Merrill jason@redhat.com
Fri Jan 31 06:19:00 GMT 2014


On 01/30/2014 04:00 PM, Jason Merrill wrote:
> Also, in the past we've had issues with nested functions in templates
> being able to refer to static/const variables from the enclosing
> context; we've dealt with that by forcing repeated lookup, but it would
> be better to keep the local_specializations from the enclosing function
> around so we can find them the usual way.  To that end, I've added a
> pointer_map_copy.

It occurs to me that I don't really need to do this to fix the bug, and 
perhaps this sort of change should wait for stage 1.  So I'm checking in 
this subset of the patch.

The second patch is the version I'm applying to 4.8, which has more 
limited effect (and works with 4.8, which the trunk patch does not).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 57899.patch
Type: text/x-patch
Size: 3218 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140131/a74e7ba5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 57899-4.8.patch
Type: text/x-patch
Size: 2733 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140131/a74e7ba5/attachment-0001.bin>


More information about the Gcc-patches mailing list