[llvm-bugs] [Bug 37680] New: Assertion failure in clang::ASTContext::getOverloadedTemplateName()
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jun 4 09:42:53 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37680
Bug ID: 37680
Summary: Assertion failure in
clang::ASTContext::getOverloadedTemplateName()
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: alexfh at google.com
CC: llvm-bugs at lists.llvm.org
$ cat test-ASTContext__getOverloadedTemplateName.cc
template <class a>
class b {
using a::add;
template <int>
void add() {
this->template add;
}
};
$ ./clang-tidy -checks=-*,bugprone-argument-comment
test-ASTContext__getOverloadedTemplateName.cc -- -std=c++11
assert.h assertion failed at llvm/tools/clang/lib/AST/ASTContext.cpp:7267 in
clang::TemplateName
clang::ASTContext::getOverloadedTemplateName(clang::UnresolvedSetIterator,
clang::UnresolvedSetIterator) const: isa<FunctionTemplateDecl>(D) ||
(isa<UsingShadowDecl>(D) && isa<FunctionTemplateDecl>(D->getUnderlyingDecl()))
@ 0x55d955bfccb6 __assert_fail
@ 0x55d95481c69c clang::ASTContext::getOverloadedTemplateName()
@ 0x55d953f8e5da clang::Sema::isTemplateName()
@ 0x55d953fa8245 clang::Sema::ActOnDependentTemplateName()
@ 0x55d953e317d7 clang::Parser::ParseUnqualifiedId()
@ 0x55d953e3cc15 clang::Parser::ParsePostfixExpressionSuffix()
@ 0x55d953e3e2e5 clang::Parser::ParseCastExpression()
@ 0x55d953e3a4d4 clang::Parser::ParseAssignmentExpression()
@ 0x55d953e3a40e clang::Parser::ParseExpression()
@ 0x55d953df7e17 clang::Parser::ParseExprStatement()
@ 0x55d953df6e1c
clang::Parser::ParseStatementOrDeclarationAfterAttributes()
@ 0x55d953df69ae clang::Parser::ParseStatementOrDeclaration()
@ 0x55d953dfddf5 clang::Parser::ParseCompoundStatementBody()
@ 0x55d953dfe6da clang::Parser::ParseFunctionStatementBody()
@ 0x55d953df58ef clang::Parser::ParseLexedMethodDef()
@ 0x55d953df464a clang::Parser::ParseLexedMethodDefs()
@ 0x55d953e503ce clang::Parser::ParseCXXMemberSpecification()
@ 0x55d953e4e8c2 clang::Parser::ParseClassSpecifier()
@ 0x55d953e65231 clang::Parser::ParseDeclarationSpecifiers()
@ 0x55d953dec2bc clang::Parser::ParseSingleDeclarationAfterTemplate()
@ 0x55d953debc14
clang::Parser::ParseTemplateDeclarationOrSpecialization()
@ 0x55d953deb5b1 clang::Parser::ParseDeclarationStartingWithTemplate()
@ 0x55d953e648e0 clang::Parser::ParseDeclaration()
@ 0x55d953ddf6f6 clang::Parser::ParseExternalDeclaration()
@ 0x55d953ddeefb clang::Parser::ParseTopLevelDecl()
@ 0x55d953ddeae8 clang::Parser::ParseFirstTopLevelDecl()
@ 0x55d953dda1a0 clang::ParseAST()
@ 0x55d953c2fa73 clang::FrontendAction::Execute()
@ 0x55d953ad2fc1 clang::CompilerInstance::ExecuteAction()
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180604/ffe96d5b/attachment-0001.html>
More information about the llvm-bugs
mailing list