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

            Bug ID: 42142
           Summary: Missing switch case checking in Clang diagnostics
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

void g();

void warn(char c)
{
  switch (c) {
  case 256: g();
  }
}

Clang: No warning. 

GCC warns:
warning: case label value exceeds maximum value for type

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to