================ @@ -14608,6 +14608,10 @@ void Sema::CheckCompleteVariableDeclaration(VarDecl *var) { std::optional<bool> CacheHasConstInit; const Expr *CacheCulprit = nullptr; auto checkConstInit = [&]() mutable { + const Expr *Init = var->getInit(); + if (Init->isInstantiationDependent()) ---------------- erichkeane wrote:
Oh wait, 14706 seems to protect against that, it has the value-dependent check. So NVM. https://github.com/llvm/llvm-project/pull/140542 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits