[cfe-dev] [PATCH] fix for bug 7857 - incomplete type as array parameter in C mode

Eli Friedman eli.friedman at gmail.com
Wed Aug 18 17:25:41 PDT 2010


On Wed, Aug 18, 2010 at 5:08 PM, Francois Pichet <pichet2000 at gmail.com> wrote:
> Any reason why that warning shoudn't apply to function definitions? I
> did some testing and both msvc and gcc will accept an incomplete
> struct array type even on a function definition parameter. As long you
> don't use it in way that requires the definition.

Just to clarify, recent gcc versions reject the construct in question.

-Eli



More information about the cfe-dev mailing list