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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Testcase:

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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to