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.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119544/new/

https://reviews.llvm.org/D119544

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to