Skip to content
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

foreach(int idx, v; arr) could do runtime bounds check #70

Open
adamdruppe opened this issue May 9, 2024 · 0 comments
Open

foreach(int idx, v; arr) could do runtime bounds check #70

adamdruppe opened this issue May 9, 2024 · 0 comments

Comments

@adamdruppe
Copy link
Contributor

if arr is static length it does VRP

if it is dynamic length i could perhaps do a bound check before entering the loop to ensure it is < int.max

search for

deprecation(fs.loc, "foreach: loop index implicitly converted from `size_t` t

statementsem.d to find the hook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant