https://llvm.org/bugs/show_bug.cgi?id=24283
Bug ID: 24283
Summary: false negative for -Wshift-overflow
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
See r243241 for reference.
http://llvm.org/viewvc/llvm-project?view=revision&revision=243241
% cat shift.c
#include <sys/types.h>
static const uint32_t kFlagSync = 2 << 30;
static const uint32_t kFlagSync2 = 1 << 35;
% ./clang shift.c -Wshift-overflow
shift.c:4:38: warning: shift count >= width of type [-Wshift-count-overflow]
static const uint32_t kFlagSync2 = 1 << 35;
--
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