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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 17 21:01:34 PDT 2010


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

           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
202.

-- 
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 llvm-bugs mailing list