https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016
--- Comment #58 from Alejandro Colomar <alx at kernel dot org> --- (In reply to Kees Cook from comment #55) > I was expecting "s->n = 7", not " ...= m", and for > "__lengthof__(memberof(struct s, fam))" to be "== 7". It should be reporting > the array element count, not the bytes, (nor the bytes of the entire > allocation). My bad; I wrote it fast. Your correction is correct. (Since this is just hypothetical --__lengthof__ is still not working for counted_by--, I couldn't actually test that.) :)