[PATCH] D119544: Deferred Concept Instantiation Implementation

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 19 08:02:19 PDT 2022

erichkeane added a comment.

In D119544#3459045 <https://reviews.llvm.org/D119544#3459045>, @tahonermann wrote:

>> This is a case where the function is a template instantiation but does NOT have a primary template, so I have to figure out what THAT means/what I should be using instead.
> I think that is not supposed to be possible. For example, `FunctionDecl::isFunctionTemplateSpecialization()` will return `false` if there is no primary template.

I wouldn't think so either?  In this case the problem is that 'u' is not in the re-manufactured scope, I think there is a bit of work to make sure that lambdas ALSO get the scope of their containing function, if they are in a functiondecl.



More information about the cfe-commits mailing list