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

            Bug ID: 16705
           Summary: Crash with pragma after a case or a default
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Crash is there is a pragma right after a case: or a default:


void __td_ta_lookup_th_unique()
{
    int t = 0;
    switch (t)
    {
        case 1:
#pragma weak t
          ;
    }
}


There is an assert in CodeGenFunction::EmitStmt  assert(S && "Null statement?")
There is a null statement there because in Parser::ParseCaseStatement,
ParseStatement() return a null statement.  (same problem in
ParseDefaultStatement)

(Bug seen in nptl_db/td_ta_map_lwp2thr.c from glibc)

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