[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>
void overloaded_fn(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.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55662/new/
https://reviews.llvm.org/D55662
More information about the cfe-commits
mailing list