<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 `MaybeODRUseExprs.empty() && "Leftover expressions for odr-use checking"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=42467">42467</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `MaybeODRUseExprs.empty() && "Leftover expressions for odr-use checking"' failed.
</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>All
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>keveman@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22174" name="attach_22174" title="Test case crashing clang frontend">attachment 22174</a> <a href="attachment.cgi?id=22174&action=edit" title="Test case crashing clang frontend">[details]</a></span>
Test case crashing clang frontend
clang crashes with that assertion failing.
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Assertion `MaybeODRUseExprs.empty() && "Leftover expressions for odr-use checking"' failed."
href="show_bug.cgi?id=12581">https://bugs.llvm.org/show_bug.cgi?id=12581</a> and
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion `MaybeODRUseExprs.empty() && "Leftover expressions for odr-use checking"' failed."
href="show_bug.cgi?id=13986">https://bugs.llvm.org/show_bug.cgi?id=13986</a> seem like possible duplicates, but
my test case was different enough, that I feel this maybe a different bug
causing the same assertion failure.
clang cloned from <a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a>
Latest commit 42e13c83284e94607b3a5751598f2c1661447356 Wed Jun 26 15:11:31 2019
clang -c 119.cc -O0 -emit-llvm -save-temps
clang-9: /cb/home/manjunath/ws/llvm-project/clang/lib/Sema/SemaDecl.cpp:13564:
clang::Decl* clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*,
bool): Assertion `MaybeODRUseExprs.empty() && "Leftover expressions for odr-use
checking"' failed.
Stack dump:
0. Program arguments: /spare/manjunath-build-llvm/bin/clang-9 -cc1 -triple
x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -save-temps=cwd
-disable-free -main-file-name 119.cc -mrelocation-model static -mthread-model
posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info
-debugger-tuning=gdb -coverage-notes-file
/cb/home/manjunath/ws/test/cerebras/119.gcno -resource-dir
/spare/manjunath-build-llvm/lib/clang/9.0.0 -O0 -fdeprecated-macro
-fdebug-compilation-dir /cb/home/manjunath/ws/test/cerebras -ferror-limit 19
-fmessage-length 0 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -disable-llvm-passes -faddrsig -o
119.tmp.bc -x c++-cpp-output 119.ii</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>