[clang] [lldb] [clang] implement CWG1980 and CWG2064: instantiation-dependency improvements (PR #190495)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 29 01:38:01 PDT 2026
================
@@ -89,23 +89,20 @@ static bool SubstQualifier(Sema &SemaRef, const DeclT *OldDecl, DeclT *NewDecl,
NestedNameSpecifierLoc NewQualifierLoc =
SemaRef.SubstNestedNameSpecifierLoc(OldDecl->getQualifierLoc(),
TemplateArgs);
-
- if (!NewQualifierLoc)
- return true;
-
+ assert(NewQualifierLoc &&
+ "substitution for the declaration qualifiers should never fail");
----------------
cor3ntin wrote:
How? The thing you can have in a NNS is fairly arbitrary
https://github.com/llvm/llvm-project/pull/190495
More information about the cfe-commits
mailing list