This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug go/64021] Empty struct vs libffi


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]