https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112539
--- Comment #5 from Greg Morse <pgmer6809 at yahoo dot com> --- Thank you very much for the links.Fascinating stuff for someone who is not a real programming Guru.I do wonder though what is so appealing about 'trailing arrays' that they became so embedded in so much code, that the compiler introduced this undefined behaviour deliberately to accomodate it.But oh well it probably seemed like a good idea at the time.Thanks again.Greg Morse On Tuesday, November 14, 2023 at 11:09:43 p.m. PST, sjames at gcc dot gnu.org <gcc-bugzi...@gcc.gnu.org> wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112539 --- Comment #2 from Sam James <sjames at gcc dot gnu.org> --- https://people.kernel.org/kees/bounded-flexible-arrays-in-c and https://developers.redhat.com/articles/2022/09/29/benefits-limitations-flexible-array-members are good reads too