[clang] [clang] Fix bogus "deduced type depends on itself" for variable template specializations (PR #217709)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 20 22:56:06 PDT 2026
================
@@ -20715,8 +20715,7 @@ static void DoMarkVarDeclReferenced(
bool NeedDefinition =
OdrUse == OdrUseContext::Used || NeededForConstantEvaluation ||
- (TSK != clang::TSK_Undeclared && !UsableInConstantExpr &&
- Var->getType()->isUndeducedType());
+ (TSK != clang::TSK_Undeclared && Var->getType()->isUndeducedType());
----------------
zyn0217 wrote:
Why is UsableInConstantExpr set for this issue?
https://github.com/llvm/llvm-project/pull/217709
More information about the cfe-commits
mailing list