From ef53a3e2b631f2456548a49ca459c93cd138eefb Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 6 Jun 2018 16:36:56 +0000 Subject: PR37680: fix faulty assertion condition. When looking up a template name, we can find an overload set containing a function template and an unresolved non-type using declaration. llvm-svn: 334106 --- clang/lib/AST/ASTContext.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/AST/ASTContext.cpp') diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index c759c96be5b..64f45af6189 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -7292,6 +7292,7 @@ ASTContext::getOverloadedTemplateName(UnresolvedSetIterator Begin, for (UnresolvedSetIterator I = Begin; I != End; ++I) { NamedDecl *D = *I; assert(isa(D) || + isa(D) || (isa(D) && isa(D->getUnderlyingDecl()))); *Storage++ = D; -- cgit v1.2.3