[clang] [Clang][Sema] Don't treat error-recovery dependence as genuine template dependence in ActOnTag (PR #221440)
Anirudh Mathur via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 5 05:35:53 PDT 2026
AnirudhMathur12 wrote:
One thing I'd like a second opinion on: this fix only handles the case where `SS.getScopeRep().getAsType()` is non-null (i.e. `NestedNameSpecifier::Kind::Type`). If `NNS.isDependent()` can also be true for a non-Type kind (Namespace, Global, MicrosoftSuper), this fallthrough would leave `IsDependent` unset for that case rather than either correctly flagging it as dependent or as error-recovery. I wasn't able to confirm from the code I looked at whether non-Type kinds can ever be dependent — if they can't, happy to add a comment noting that; if they can, I'll extend the check. Let me know which it is if you know offhand.
https://github.com/llvm/llvm-project/pull/221440
More information about the cfe-commits
mailing list