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

--- Comment #8 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #7)
> As I said elsewhere we should reject this going forward.

Reject application of __builtin_object_size to an interior FAM? Or declarations
involving interior FAMs altogether (presumably with a flag to accept?)

If the latter, with a flag: the point of this bug report still stands.


> What does int fam[0] (int fam[1]) say (with/without -fno-strict-flex-arrays)?

It seems to take the declared size in all cases, yielding 0 for fam[0] and
sizeof(int) for fam[1].

Reply via email to