http://llvm.org/bugs/show_bug.cgi?id=17574

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |DUPLICATE

--- Comment #2 from [email protected] ---
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to