================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to