Re: Unexpected TypeLoc match for captured variable in lambda
On 25/03/2019 08:59, Manuel Klimek via cfe-dev wrote:
> I think there was some work recently that changed how we represented
> lambdas, but not sure whether that affected this behavior.
> Here, the FieldDecl of the CXXRecordDecl has a const Foo & type and it
> has the 'fn' as the TypeLoc - I assume the location is a bug.
I don't know if it is a bug, but from the FieldDecl the matched typeloc
seems to be: