summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/lambda-invalid-capture.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR43080: Do not build context-sensitive expressions during name classification.Richard Smith2019-10-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | Summary: We don't know what context to use until the classification result is consumed by the parser, which could happen in a different semantic context. So don't build the expression that results from name classification until we get to that point and can handle it properly. This covers everything except C++ implicit class member access, which is a little awkward to handle properly in the face of the protected member access check. But it at least fixes all the currently-filed instances of PR43080. Reviewers: efriedma Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68896 llvm-svn: 374826
* Mark lambda decl as invalid if a captured variable has an invalid type.Jorge Gorbe Moya2018-11-211-0/+18
This causes the compiler to crash when trying to compute a layout for the lambda closure type (see included test). llvm-svn: 347402
OpenPOWER on IntegriCloud