[PATCH] D55662: [Sema][ObjC] Do not warn about repeated uses of weak variables when the variables are accessed in an unevaluated context.
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 18 15:15:14 PST 2018
ahatanak added a comment.
Sorry, please ignore my previous comment. I was looking at the wrong place.
The following code reaches `Sema::BuildDecltypeType` without going through `ActOnDecltypeExpression`:
template <typename T>
decltype(auto) v5 = &overloaded_fn<int>;
`Sema::BuildDecltypeType` is called from `Sema::DeduceAutoType`, so calling `CheckPlaceholderExpr ` there should fix the assert when the test case above is compiled.
CHANGES SINCE LAST ACTION
More information about the cfe-commits