================ @@ -2587,6 +2587,9 @@ APValue *VarDecl::evaluateValueImpl(SmallVectorImpl<PartialDiagnosticAt> &Notes, !Notes.empty()) Result = false; + if (Eval->Evaluated.allowConstexprUnknown()) + Result = false; ---------------- efriedma-quic wrote:
I think this check should be inside `EvaluateAsInitializer()`... and all the other `Evaluate` entry points also include this check. https://github.com/llvm/llvm-project/pull/128409 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits