[PATCH] D58164: Block+lambda: allow reference capture
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 13 10:27:05 PST 2019
ahatanak added a comment.
The code is crashing here because the loop in `computeBlockInfo` is trying to capture a variable that is captured by reference by the enclosing lambda as if it were captured by value. This is the type of VT:
LValueReferenceType 0x1138008c0 'struct derp &'
`-RecordType 0x113052580 'struct derp'
`-CXXRecord 0x1130524e8 'derp'
So in this case, the type doesn't require non-trivial copy construction.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58164/new/
https://reviews.llvm.org/D58164
More information about the cfe-commits
mailing list