https://llvm.org/bugs/show_bug.cgi?id=25301

            Bug ID: 25301
           Summary: very chatty error on expr "(?)"
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: amcca...@google.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

consider:
void f() {
  while (?) {
    ;
  }
}

clang generates the following diagnostics:
error: expected expression
  while (?) {
         ^
error: expected expression
  while (?) {
          ^
error: expected ':'
  while (?) {
          ^
          : 
note: to match this '?'
  while (?) {
         ^
error: expected expression
  while (?) {
          ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to