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

Compiler crash using @tagName() on extern union #742

Closed
tgschultz opened this issue Feb 3, 2018 · 0 comments
Closed

Compiler crash using @tagName() on extern union #742

tgschultz opened this issue Feb 3, 2018 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@tgschultz
Copy link
Contributor

tgschultz commented Feb 3, 2018

const FloatInt = extern union {
    Float: f32,
    Int: i32,
};

test "stuff" {
    var fi = FloatInt{.Float = 123.45};
    var tagName = @tagName(fi);
}
@andrewrk andrewrk added this to the 0.2.0 milestone Feb 4, 2018
@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label Feb 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants