-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerconfirmedVerified by a second partyVerified by a second partyfalse-positiveWarning fires when it should notWarning fires when it should not
Description
Bugzilla Link | 20200 |
Version | trunk |
OS | Linux |
Reporter | LLVM Bugzilla Contributor |
CC | @dwblaikie,@Weverything |
Extended Description
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
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerconfirmedVerified by a second partyVerified by a second partyfalse-positiveWarning fires when it should notWarning fires when it should not