[Bug middle-end/28865] Structures with a flexible arrray member have wrong .size

bergner at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 9 20:10:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28865

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bergner at gcc dot gnu.org

--- Comment #14 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #13)
> Runtime testcase that presumably fails on -fsection-anchors targets:
> struct A { int a; char b[]; };
> union B { struct A a; char b[sizeof (struct A) + 31]; };
> union B b = { { 1, "123456789012345678901234567890" } };
> union B c = { { 2, "123456789012345678901234567890" } };
...

I hit the abort on powerpc64-linux with a mainline from December (only mainline
build handy at the moment) and we are a -fsection-anchors target.



More information about the Gcc-bugs mailing list