Assignment of values to aggregates should be supported.
struct x { int a; char b; float d; };
f(struct x *a, struct x *b) { *a = *b; }
One solution would be to convert the *a = *b; into
memcpy(a, b, sizeof(x));
Philipp
Patches: #285
Increasing priority, since I'm encountering more and more software and libraries that rely on full struct support.
Increasing priority, since aggregate and union handling is currently the main issue that prevents us from compiling ANSI C89 / ISO C90 code.
This is now implemented in the "next" branch. This RFe can be closed when it gets merged to trunk (probably soon afetr the 3.8.0 release).
The branch has been merged in [r10592].
Log in to post a comment.
Increasing priority, since I'm encountering more and more software and libraries that rely on full struct support.
Increasing priority, since aggregate and union handling is currently the main issue that prevents us from compiling ANSI C89 / ISO C90 code.
Philipp
This is now implemented in the "next" branch. This RFe can be closed when it gets merged to trunk (probably soon afetr the 3.8.0 release).
Philipp
The branch has been merged in [r10592].
Philipp
Last edit: Maarten Brock 2018-10-15