This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/64021] Empty struct vs libffi
- From: "rth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Nov 2014 15:45:39 +0000
- Subject: [Bug go/64021] Empty struct vs libffi
- Auto-submitted: auto-generated
- References: <bug-64021-4 at http dot gcc dot gnu dot org/bugzilla/>
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.