[PATCH, PR 57748] Check for out of bounds access, Part 2

Eric Botcazou ebotcazou@adacore.com
Sun Oct 13 12:29:00 GMT 2013


> Would you agree that this "error: flexible array member"
> should also be emitted for a zero-sized array member,
> maybe as "error: zero-sized array member not at end of struct"?

I would have answered yes when zero-sized arrays where introduced, but it's 
far less clear a couple of decades later IMO.

-- 
Eric Botcazou



More information about the Gcc-patches mailing list