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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to