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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to