[Bug middle-end/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails
msebor at gcc dot gnu.org
Mon Jun 13 22:27:43 GMT 2022
--- Comment #20 from Martin Sebor <msebor at gcc dot gnu.org> ---
Well, I just "asked" for such an option the same way you asked for
-fstrict-flex-arrays in comment #3, because I believe it would be useful to
make the BOS improvements you're looking for available even to code that can't
do a whole-hog replacement of all trailing arrays with flexible array members.
The spelling of the option names doesn't seem important to me (they could be
separate options, or the same one with an argument).
More information about the Gcc-bugs