[Bug middle-end/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

qinzhao at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 8 16:06:47 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836

--- Comment #14 from qinzhao at gcc dot gnu.org ---
(In reply to Kees Cook from comment #13)
> Maybe the enum needs to also be expanded so that [0] can be distinguished
> from []?

I believe that the IR for real flexible array [] is different from [0], it's
already identified by the IR itself, no need for this enum to distinguish.


More information about the Gcc-bugs mailing list