Skip to content

Shift operators are undefined in some situations #1888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brson opened this issue Feb 23, 2012 · 0 comments
Closed

Shift operators are undefined in some situations #1888

brson opened this issue Feb 23, 2012 · 0 comments
Labels
A-codegen Area: Code generation C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@brson
Copy link
Contributor

brson commented Feb 23, 2012

When shifting by greater than the bit width of the type or negative values, the results are undefined. As discussed in #1570, it might be nice if this was not the case.

@brson brson closed this as completed Feb 23, 2012
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

1 participant