[Bug go/64021] Empty struct vs libffi

rth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 24 15:45:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64021

--- Comment #8 from Richard Henderson <rth at gcc dot gnu.org> ---
(In reply to Ian Lance Taylor from comment #7)
> I note that a zero-sized array is converted to an empty struct in go-ffi.c. 
> I wonder how libffi handles that today.

It doesn't.  There will be an assertion error.

I'll look at changing libffi to handle empty structures then.



More information about the Gcc-bugs mailing list