<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion failure in clang::ASTContext::getOverloadedTemplateName()"
href="https://bugs.llvm.org/show_bug.cgi?id=37680">37680</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure in clang::ASTContext::getOverloadedTemplateName()
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alexfh@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ 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()</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>