------- Comment #4 from meklund at cisco dot com  2010-06-07 15:26 -------
I see your point that some legacy code might use a larger size as a flexible
array.

What is you opinion on the possibility of adding a bit-flag to
__builtin_object_size() (like 0x04) that tightens the allowed flexible array
size to be only 0 or 1?  Larger sizes would be accepted as the total array
size.  This would be closer to that in
http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Zero-Length.html#Zero-Length.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44386

Reply via email to