[LLVMbugs] [Bug 17570] New: Assertion in getLastStmtLoc with "continue" in loop and -Wconsumed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 14 04:46:28 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17570
Bug ID: 17570
Summary: Assertion in getLastStmtLoc with "continue" in loop
and -Wconsumed
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: jonathan.sauer at gmx.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11370
--> http://llvm.org/bugs/attachment.cgi?id=11370&action=edit
Complete log of clang run
The following code crashes clang r192574 when compiling with -Wconsumed:
static void foo()
{
while (true)
{
if (false)
continue;
}
}
This results (full crash log attached):
% ~/LLVM/build/Release+Asserts/bin/clang++ -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.
The code compiles successfully with clang r192096.
--
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/166aa93e/attachment.html>
More information about the llvm-bugs
mailing list