[clang] [Clang] Instantiate functions from constant evaluation. (PR #205557)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 24 21:48:11 PDT 2026


================
@@ -15099,7 +15099,8 @@ void Sema::CheckCompleteVariableDeclaration(VarDecl *var) {
       }
     } else {
       // Evaluate the initializer to see if it's a constant initializer.
-      HasConstInit = var->checkForConstantInitialization(Notes);
+      HasConstInit =
+          var->checkForConstantInitialization(Notes, getProxyForEval());
----------------
tbaederr wrote:

This line is for pre-C++11, is it really correct to have functions instantiated there?

https://github.com/llvm/llvm-project/pull/205557


More information about the cfe-commits mailing list