leaningtech / cheerp-meta

Cheerp - a C/C++ compiler for Web applications - compiles to WebAssembly and JavaScript
https://labs.leaningtech.com/cheerp
Other
1.02k stars 50 forks source link

bit field initialize fail #119

Closed zyz9740 closed 1 year ago

zyz9740 commented 2 years ago

bit_field_initialize_fail.zip

Please look at this bug as well, I don't know why I can't initialize the bit filed in union. Note that if the type of variable b is long or int, it can be initialized as expected.

carlopi commented 2 years ago

Thanks for opening the issue, I do reproduce the bug.

alexp-sssup commented 1 year ago

The problem is now fixed in Cheerp master