[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 Jul 6 20:05:09 GMT 2022


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

--- Comment #39 from qinzhao at gcc dot gnu.org ---
(In reply to Siddhesh Poyarekar from comment #23)

> Also I wonder if there should be an analogous -Wstrict-flex-arrays to issue
> warnings alongside changing codegen.

please take a look at comments #32 and above to see whether the discussion of
-Wstrict-flex-arrays is similar as what are in your mind?


More information about the Gcc-bugs mailing list