================
@@ -19439,7 +19453,7 @@ bool IntExprEvaluator::VisitCastExpr(const CastExpr *E) 
{
   case CK_PointerToIntegral: {
     CCEDiag(E, diag::note_constexpr_invalid_cast)
         << diag::ConstexprInvalidCastKind::ThisConversionOrReinterpret
-        << Info.Ctx.getLangOpts().CPlusPlus << E->getSourceRange();
+        << Info.Ctx.getLangOpts().CPlusPlus << true << E->getSourceRange();
----------------
efriedma-quic wrote:

Do we want to distinguish whether the value is pointer-like, for example 
`constexpr intptr_t x = (intptr_t)&x`?  This is the `getLValueBase()` check in 
the code.

https://github.com/llvm/llvm-project/pull/197005
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to