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

Yep, I still think that would be more obvious. Maybe no need to check narrowing 
(above) for invalid expressions too.
PR title and decription would probably benefit from a bit more concrete 
explanation of what is going and where, i.e. "do not crash on invalid c23 
constexpr intitializer" 

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