Miscompilation with switch in anonymous struct literal #7097
Labels
bug
Observed behavior contradicts documented or intended behavior
miscompilation
The compiler reports success but produces semantically incorrect code.
stage1
The process of building from source via WebAssembly and the C backend.
Milestone
The following function will always print
reading from
and will ignore the runtime parameter:Fully runnble example can be found here:
https://gist.github.com/MasterQ32/da5b1f2dbe4ebc89ebbf602d8b118fca
Moving out the switch+
@as
will fix the problem. This is probably a known issue alreadyThe text was updated successfully, but these errors were encountered: