[LLVMbugs] [Bug 3737] New: clang rejects "__label__"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Mar 5 10:43:18 PST 2009


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

           Summary: clang rejects "__label__"
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kremenek at apple.com
                CC: llvmbugs at cs.uiuc.edu


gcc happily eats the following:

void foo(void) {
  __label__ bad;
  int x;
}

clang not so much:

$ clang t.c
t.c:6:3: error: expected expression
  __label__ bad;
  ^
1 diagnostic generated.

Not only does clang reject this, but the error message is suboptimal.


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