[LLVMbugs] [Bug 20200] New: Flase positive clang warning for -Wassign-enum
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 3 20:19:58 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20200
Bug ID: 20200
Summary: Flase positive clang warning for -Wassign-enum
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: kathleen.king at quentustech.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang 3.5 is throwing a false positive warning for -Wassign-enum. I created a
test case and ran:
typedef enum {RANDOM, IMMEDIATE, SEARCH} strategy_t;
int main() {
strategy_t my_strategy = IMMEDIATE;
my_strategy = (my_strategy & ~(IMMEDIATE));
my_strategy &= ~(IMMEDIATE);
return 0;
}
The second
--
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/20140704/e03cbcca/attachment.html>
More information about the llvm-bugs
mailing list