[LLVMbugs] [Bug 17574] Clang trunk crash in ConsumedStateMap::intersectAtLoopHead
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 14 10:38:04 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17574
jonathan.sauer at gmx.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jonathan.sauer at gmx.de
Resolution|--- |DUPLICATE
--- Comment #2 from jonathan.sauer at gmx.de ---
Further reduced, crashes clang r192574 when compiling with -Wconsumed:
class runtime_error
{
public:
virtual ~runtime_error();
};
void read(bool sf) {
while (sf) {
if(sf) throw runtime_error();
}
}
This results in:
% ~/LLVM/build/Release+Asserts/bin/clang++ -c -Wconsumed clang.cpp
Assertion failed: (Block->pred_size() == 1 && *Block->pred_begin() &&
Block->succ_size() != 0), function getLastStmtLoc, file
/Users/rynnsauer/LLVM/llvm/tools/clang/lib/Analysis/Consumed.cpp, line 70.
[...]
Removing the virtual destructor makes the crash go away. This looks identical
to bug 17570 (but with an exception instead of "continue"). I'm adding this
comment to bug 17570 as well and closing this one as a duplicate.
*** This bug has been marked as a duplicate of bug 17570 ***
--
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/20131014/9583425d/attachment.html>
More information about the llvm-bugs
mailing list