C++ PATCH for c++/48523 (lamda, 'this', templates)

Jason Merrill jason@redhat.com
Mon Apr 11 21:49:00 GMT 2011


Our rewriting for use of 'this' in a lambda used cp_build_indirect_ref, 
which assumes that we aren't in a template.  Using build_x_indirect_ref 
instead works better.

Tested x86_64-pc-linux-gnu, applying to trunk and 4.6.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 48523.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110411/33854e2b/attachment.ksh>


More information about the Gcc-patches mailing list