[Bug middle-end/28865] Structures with a flexible arrray member have wrong .size
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 14 19:51:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28865
--- Comment #25 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Mon, 13 Jan 2014, jakub at gcc dot gnu.org wrote:
> But the glibc headers case you're mentioning wasn't initializing the flexible
> array members, right? (Or even initialization with {} initializer is fine I
I don't have details of exactly what uses of flexible array members they
were making beyond those permitted by ISO C. I guess the general point is
to be careful about disallowing such uses because it might break existing
code (so allowing plenty of time before a release for distribution
rebuilds to catch any problems with such a change, for example).
More information about the Gcc-bugs
mailing list