-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang: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 party
Description
| Bugzilla Link | 10159 |
| Version | trunk |
| OS | All |
| Blocks | llvm/llvm-bugzilla-archive#22259 |
| Reporter | LLVM Bugzilla Contributor |
| CC | @akyrtzi,@DougGregor,@seanm |
Extended Description
MSVC will emit warnings for the following code, clang not:
enum E {
e = 3,
};
int main() {
bool var1 = e; // truncation from 'E' to 'bool'
bool var2 = 3; // truncation from 'int' to 'bool'
}
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang: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 party