For some reason it attempts to initialize the vector first; is this a result of the way the structure is laid out? I expected it to be C-like, where state.nested.nested.eger would be offset 0, but there definitely seems to be something up here. Generating the clears by hand generates better code, and is what I expected to come out of this operation:
https://sourceforge.net/p/fteqw/tickets/85/
paril101 wrote on 2020-07-07:
This is compounded by nesting structures, but attempting to zero-fill with "v = (type) { }" generates garbage.
Here is an MVP:
The output is seemingly nonsensical:
For some reason it attempts to initialize the vector first; is this a result of the way the structure is laid out? I expected it to be C-like, where state.nested.nested.eger would be offset 0, but there definitely seems to be something up here. Generating the clears by hand generates better code, and is what I expected to come out of this operation: