Closed cmourglia closed 5 days ago
I'm unable to reproduce this on Linux with the latest commit. I see from your report you're on 94ec64792. I also checked line 9822 in check_expr.cpp
per the assert, and I could not find an assert on that line. Are you able to test this with a more up-to-date version of the Odin compiler?
Error: Cannot convert untyped value '.1' to 'SampleCountFlag' from 'untyped float'
samples = {.1},
Looks like someone (you, in fact) caught that before me indeed ! Closing then.
Context
Odin compiler did hit an assert because of a typo inside a bitfield. When using
{.1}
(considered as a float) instead of (the correct in this case{._1}
) the compiler crashes (asserts), complaining it expected an integer and got a float instead.Expected Behavior
The compiler should report an error because of the ill-formed bitfield.
Current Behavior
The compiler hits an assert, then crashes.
Failure Information (for bugs)
The hit assert is the following:
Steps to Reproduce
Compiling the following code reproduces the error: