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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to