-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Coercing typed tuple to struct causes index OOB in Sema #19529
Labels
Milestone
Comments
InKryption
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Apr 4, 2024
Stack trace with
And the error message using a ReleaseFast build of the compiler:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.12.0-dev.3518+d2be725e4
Steps to Reproduce and Observed Behavior
Minimum reproduction:
Notes:
Tupletype{...}
) coerced to any record struct type (even empty) produces the same misbehavior.src/Sema.zig:32265:86
.Expected Behavior
A proper compile error about not being able to coerce a tuple to a struct.
The text was updated successfully, but these errors were encountered: