C++ PATCH for c++/85764, bogus 'this' not captured error

Jason Merrill jason@redhat.com
Sat Jun 2 03:13:00 GMT 2018


Here, because we're inside a member function, resolvable_dummy_lambda
thought we could resolve a reference to 'this'.  But because it's a
static member function, we can't.  Using nonlambda_method_basetype
instead of current_nonlambda_class_type fixes that, but then I needed
to improve n_m_b to handle NSDMI context.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 85764.diff
Type: text/x-patch
Size: 2916 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180602/1821254c/attachment.bin>


More information about the Gcc-patches mailing list