corrode icon indicating copy to clipboard operation
corrode copied to clipboard

illegal member access of incomplete type

Open kornelski opened this issue 8 years ago • 0 comments

This pattern is used in my <math.h> (OS X 10.11, clang 8.0.0 (clang-800.0.38))

void test() {
    union { float a; unsigned int b; } c;
    c.a = 0;
}

I don't see any problem with it. The type is complete. It is unsafe by Rust's standards, but I can't help what <math.h> does :(

kornelski avatar Dec 10 '16 15:12 kornelski