-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Compiler crash when @memsetting member array #15634
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
Comments
The platform doesn't matter. I reproduced this on osx with a bit smaller example:
My guess the line
Since tuples are indexable. From the docs:
In the cases above, If the doc is correct and the compiler isn't, then the fix is to restrict type checking of |
I created a small PR with the possible fix: #15638 |
The alternative fix would be to properly implement memset for all remaining indexable containers like proposed here #15479 |
Related #15633 (similar issue, but with |
Closes ziglang#15634 Co-authored-by: Dima Afanasyev <[email protected]>
Closes ziglang#15634 Co-authored-by: Dima Afanasyev <[email protected]>
Closes ziglang#15634 Co-authored-by: Dima Afanasyev <[email protected]>
Closes ziglang#15634 Co-authored-by: Dima Afanasyev <[email protected]>
Closes ziglang#15634 Co-authored-by: Dima Afanasyev <[email protected]>
Closes ziglang#15634 Co-authored-by: Dima Afanasyev <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Zig Version
0.11.0-dev.3031+f40539e5d
Steps to Reproduce and Observed Behavior
This is on Windows 10.
zig init
main.zig:
zig build:
Expected Behavior
The text was updated successfully, but these errors were encountered: