[Bug 236] Empty structs not copied correctly

2016-10-01 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=236 --- Comment #3 from Iain Buclaw --- Strictly speaking, field-less structs aren't copied around in our codegen for GCC anyway (there's nothing to copy). Empty variables aren't passed, a new empty constructor is generated instead. This is what th

[Bug 236] Empty structs not copied correctly

2016-10-01 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=236 Johannes Pfau changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 236] Empty structs not copied correctly

2016-08-11 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=236 --- Comment #1 from Johannes Pfau --- I tried adding a fake 1 ubyte field to such types, but this messes up interfacing with C/C++ ABIs for empty structs. Is there any oher way to force the backend to actually intialize/copy the data in a struct