public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
* Flexible array member
@ 2021-12-10 17:44 Marc Nieper-Wißkirchen
  2021-12-10 21:00 ` David Malcolm
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Nieper-Wißkirchen @ 2021-12-10 17:44 UTC (permalink / raw)
  To: jit

C99 (and thus GCC) allow defining structures that end in a flexible array
member ([1]).

How can this be encoded in libgccjit? Is it valid to create an array type
of length 0 and use that to define the last field in a struct?

Thanks,

Marc

--

[1] https://en.wikipedia.org/wiki/Flexible_array_member

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-10 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 17:44 Flexible array member Marc Nieper-Wißkirchen
2021-12-10 21:00 ` David Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).