[llvm-bugs] [Bug 25301] New: very chatty error on expr "(?)"

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 23 15:19:57 PDT 2015


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: unassignedclangbugs at nondot.org
          Reporter: amccarth at google.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151023/20287196/attachment.html>


More information about the llvm-bugs mailing list