[clang] [Clang] Set the decl context to the instantiated constructor when instantiating the explicit specifier (PR #78053)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 16 06:55:36 PST 2024


erichkeane wrote:

> I think it looks good but I'd like @erichkeane's input.
> 
> I also wonder whether we should look at the instantiated parent to determine whether the lambda is dependent, instead of just looking at the non-instantiated parent.
> 
> Might fix a few bugs and it's an approach i never considered before

Yeah, unfortunately this falls very quickly into the 'we need to implement deferred instantiation of lambda bodies' here.  I'd definitely like to see an exploration of that idea, but if that doesn't work out for good reason/with a bit of effort, I think this is probably a 'good enough for now'.

https://github.com/llvm/llvm-project/pull/78053


More information about the cfe-commits mailing list