[PATCH] D134928: [Sema] Don't treat a non-null template argument as if it were null.
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 29 21:16:29 PDT 2022
shafik added a comment.
It looks like in `Sema::CheckTemplateArgument` in C++17 mode we end up calling `CheckConvertedConstantExpression` which sees a `IntegralToPointer` cast which is basically an reintepret_cast and rejects it as ill-formed.
In the C++11 case we end up in `CheckTemplateArgumentAddressOfObjectOrFunction`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134928/new/
https://reviews.llvm.org/D134928
More information about the cfe-commits
mailing list