[LLVMbugs] [Bug 22733] New: "else" is not an unqualified-id

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 27 14:33:51 PST 2015


            Bug ID: 22733
           Summary: "else" is not an unqualified-id
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


void test(int z) {
  if (z) {
  } else {

$ clang b14253056.cc 
b14253056.cc:4:5: error: expected unqualified-id
  } else {
b14253056.cc:6:1: error: extraneous closing brace ('}')
2 errors generated.

The error on 'else' is a bit extraneous, and really indicates a different
problem (the extraneous closing brace was earlier).

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/20150227/24d38993/attachment.html>

More information about the llvm-bugs mailing list