You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect that it would output 2 numbers that refers to same memory address where arena->data resides, however, using shecc results in the second number is different to the first one, and same as the integer value of enum B previously assigned.
Using gcc to compile this program would have expected result however.
The text was updated successfully, but these errors were encountered:
Additional note, this seems to not be only affecting by enum, in fact, all types which resides in the first member of struct would cause same behavior.
This doesn't affect if the array is allocated outside of a struct on heap, the following code works as expected:
Considering the following example minimum arena implementation:
I expect that it would output 2 numbers that refers to same memory address where
arena->data
resides, however, using shecc results in the second number is different to the first one, and same as the integer value of enumB
previously assigned.Using gcc to compile this program would have expected result however.
The text was updated successfully, but these errors were encountered: