[PATCH] Sema: Treat zero sized arrays as flexible array members

Andrea Di Biagio Andrea_DiBiagio at sn.scee.net
Wed Sep 24 05:04:16 PDT 2014


Thanks for this patch.

I am not knowledgeable enough in this area to give a LGTM, but personally I like this approach.
I always thought that GCC was too permissive in general when it came to using zero-length arrays.
I agree that we should allow declaring a zero-length array as the sole element of a structure. I am not sure if it makes sense to have a zero-length array in a union.

-Andrea

http://reviews.llvm.org/D5478






More information about the cfe-commits mailing list