-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Slicing vectors with negative indices returns wrong result #7096
Comments
I don't think we ever supported "-1" in either indexing or slicing. Shall I convert this issue to a feature request then? |
That makes sense. The reason it felt more like a bug than a missing feature was that there was no warning messages. Notice that I didn't enable dynamic indexing, so the index is a compile-time constant and the compiler should be able to produce a warning about it being negative, yet it did not. |
taichi-dev#7212) Issue: fix taichi-dev#7096 ### Brief Summary
Consider this code segment
it prints out
The text was updated successfully, but these errors were encountered: