Skip to content

stage1: add a compile error for using @bitCast to convert an enum to an integer #10269

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
wants to merge 1 commit into from

Conversation

scheibo
Copy link
Contributor

@scheibo scheibo commented Dec 4, 2021

This fixes #3647 for stage 1. AFAICT though this is a breaking change (the accepted proposal doesn't have the breaking label, I think that was an oversight?), so might have to be careful about merging this.

@andrewrk
Copy link
Member

Thanks for the patch. At this point we need a self-hosted implementation for this to be useful since zig 0.10.0 will ship with stage3. Feel free to open a fresh PR if you want to pursue that.

@andrewrk andrewrk closed this May 11, 2022
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

Successfully merging this pull request may close these issues.

add a compile error for using @bitCast to convert an enum to an integer
2 participants