This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #17 from Alan Modra <amodra at gmail dot com> ---
I believe Eric's comment
http://gcc.gnu.org/ml/gcc-patches/2013-05/msg00179.html points at the correct
fix, but it's a bit messy.  You need to recursively descend both "decl" and
"init" in code like c-decl.c:finish_decl, updating "decl" component sizes for
any variable length arrays you find, rather than handling just a top level
variable length array as we do currently.  Then repeat the exercise for other
language versions of finish_decl..


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]