<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 triggered in SemaChecking.cpp"
href="https://llvm.org/bugs/show_bug.cgi?id=27835">27835</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion triggered in SemaChecking.cpp
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ruiu@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>It is observed that clang triggered assertion on lld buildbot.
<a href="http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-debian-fast/builds/38263/steps/build/logs/stdio">http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-debian-fast/builds/38263/steps/build/logs/stdio</a>
clang-3.9:
/home/llvmbb/llvm-buildit/llvm/tools/clang/lib/Sema/SemaChecking.cpp:5937:
clang::Expr *EvalAddr(clang::Expr *, SmallVectorImpl<clang::DeclRefExpr *> &,
clang::Decl *): Assertion `(E->getType()->isAnyPointerType() ||
E->getType()->isBlockPointerType() || E->getType()->isObjCQualifiedIdType()) &&
"EvalAddr only works on pointers"' failed.
#0 0x00000000018b9d68 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x18b9d68)
#1 0x00000000018ba4c7 SignalHandler(int)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x18ba4c7)
#2 0x00007fa78ad23d30 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10d30)
#3 0x00007fa78a10e458 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x33458)
#4 0x00007fa78a10f8da abort (/lib/x86_64-linux-gnu/libc.so.6+0x348da)
#5 0x00007fa78a107387 (/lib/x86_64-linux-gnu/libc.so.6+0x2c387)
#6 0x00007fa78a107432 (/lib/x86_64-linux-gnu/libc.so.6+0x2c432)
#7 0x00000000026c0905 EvalAddr(clang::Expr*,
llvm::SmallVectorImpl<clang::DeclRefExpr*>&, clang::Decl*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x26c0905)
#8 0x00000000026a65d3 clang::Sema::CheckReturnValExpr(clang::Expr*,
clang::QualType, clang::SourceLocation, bool, llvm::SmallVector<clang::Attr*,
2u> const*, clang::FunctionDecl const*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x26a65d3)
#9 0x0000000002a2f104 clang::Sema::BuildReturnStmt(clang::SourceLocation,
clang::Expr*) (/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x2a2f104)
#10 0x0000000002a2e919 clang::Sema::ActOnReturnStmt(clang::SourceLocation,
clang::Expr*, clang::Scope*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x2a2e919)
#11 0x00000000024e5f37 clang::Parser::ParseReturnStatement()
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x24e5f37)
#12 0x00000000024e1043
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x24e1043)
#13 0x00000000024e0925
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x24e0925)
#14 0x00000000024e7a2a clang::Parser::ParseCompoundStatementBody(bool)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x24e7a2a)
#15 0x00000000024e838c clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x24e838c)
#16 0x000000000246002c
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x246002c)
#17 0x00000000024efd7e
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x24efd7e)
#18 0x00000000024ee935
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x24ee935)
#19 0x00000000024ee265
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x24ee265)
#20 0x0000000002473594 clang::Parser::ParseDeclaration(unsigned int,
clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x2473594)
#21 0x000000000245ded4
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x245ded4)
#22 0x000000000245d432
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x245d432)
#23 0x00000000024593a6 clang::ParseAST(clang::Sema&, bool, bool)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x24593a6)
#24 0x0000000001dbb045 clang::FrontendAction::Execute()
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x1dbb045)
#25 0x0000000001d86801
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x1d86801)
#26 0x0000000001e51a22
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x1e51a22)
#27 0x0000000000758252 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x758252)
#28 0x0000000000756eb2 main
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x756eb2)
#29 0x00007fa78a0fb5f0 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x205f0)
#30 0x0000000000753f89 _start
(/home/llvmbb/bin/clang-latest/bin/clang-3.9+0x753f89)</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>