================
@@ -8581,6 +8581,7 @@ ExprResult InitializationSequence::Perform(Sema &S,
         // respectively.
         Expr::EvalResult ER;
         if (Entity.getType()->getAs<PointerType>() &&
+            !CurInit.get()->isValueDependent() &&
----------------
Fznamznon wrote:

I'm still not a fan of using anything that says "dependent" around C. I would 
just skip `CheckC23ConstexprInitConversion` entirely if the init expression is 
invalid.

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

Reply via email to