[LLVMbugs] [Bug 6863] New: crash on invalid

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 17 23:01:34 CDT 2010


           Summary: crash on invalid
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

This crashes clang++:

bool test(int FD,  foo_t &FileActions) {

  if (int Err = foo(&FileActions))
  return false;

$ clang++ t.ii
t.ii:2:20: error: unknown type name 'foo_t'
bool test(int FD,  foo_t &FileActions) {
t.ii:5:5: warning: if statement has empty body [-Wempty-body]
Assertion failed: (RefCount >= 1 && "Referencing already-destroyed
statement!"), function getStmtClass, file
/Users/sabre/llvm/tools/clang/lib/Sema/../../include/clang/AST/Stmt.h, line

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the LLVMbugs mailing list