-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"quality-of-implementation
Description
| Bugzilla Link | 10703 |
| Resolution | FIXED |
| Resolved on | Oct 05, 2012 16:56 |
| Version | unspecified |
| OS | Linux |
| CC | @dwblaikie,@Weverything |
Extended Description
clang produces no warnings for the following:
int x[4] = // ...
int k = x[0] << 24 + x[1] << 16 + x[2] << 8 + x[3];
This parses as:
int k = x[0] << (24 + x[1]) << (16 + x[2]) << (8 + x[3]);
Such a warning would need to be careful to not fire on:
std::cout << x[0] << 24 + x[1] << 16 + x[2] << 8 + x[3];
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"quality-of-implementation