[LLVMbugs] [Bug 16705] New: Crash with pragma after a case or a default

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 25 05:08:37 PDT 2013


            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: unassignedclangbugs at nondot.org
          Reporter: ogoffart at kde.org
                CC: llvmbugs at cs.uiuc.edu
    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

(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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130725/06d67dc6/attachment.html>

More information about the llvm-bugs mailing list