Re: [PATCH] c++/pr77585 bogus this error with generic lambda

2016-12-15 Thread Jason Merrill
OK. On Thu, Dec 15, 2016 at 7:38 AM, Nathan Sidwell wrote: > 77585 concerns the instantiation of a generic lambda that contains a call to > a non-dependent non-static member function. > > auto lam = [&](auto) { return Share (); }; > r += Eat (lam); // instantation of lambda::operator() here

[PATCH] c++/pr77585 bogus this error with generic lambda

2016-12-15 Thread Nathan Sidwell
77585 concerns the instantiation of a generic lambda that contains a call to a non-dependent non-static member function. auto lam = [&](auto) { return Share (); }; r += Eat (lam); // instantation of lambda::operator() here During instantiation of the call to Share, maybe_resolve_dummy gets