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

[From 
@Fznamznon](https://github.com/llvm/llvm-project/pull/228776#discussion_r4211072160):

> Dependent might also mean error-dependent, 
> https://clang.llvm.org/doxygen/classclang_1_1Expr.html#a3d637bce7879f620fab6be5d39e9035f
>  says "an error, whose resolution is unknown". However I do agree that it 
> looks confusing in C handling. I would rather just check that initializer is 
> a valid expression before further checks.

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