diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-06-06 16:36:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-06-06 16:36:56 +0000 |
commit | ef53a3e2b631f2456548a49ca459c93cd138eefb (patch) | |
tree | d25b81317ab068285897e3cc71ff47e047e69dab /clang/lib/AST/ASTContext.cpp | |
parent | 8cb6a521be9abebc2174353dcb7025f9674023fb (diff) | |
download | bcm5719-llvm-ef53a3e2b631f2456548a49ca459c93cd138eefb.tar.gz bcm5719-llvm-ef53a3e2b631f2456548a49ca459c93cd138eefb.zip |
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
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<FunctionTemplateDecl>(D) || + isa<UnresolvedUsingValueDecl>(D) || (isa<UsingShadowDecl>(D) && isa<FunctionTemplateDecl>(D->getUnderlyingDecl()))); *Storage++ = D; |