C PATCH to enhance array bounds diagnostics (PR c/69262)

Jeff Law law@redhat.com
Thu Jan 14 17:38:00 GMT 2016


On 01/14/2016 03:29 AM, Marek Polacek wrote:
> This PR is a request for better array bounds diagnostics.  The C++ FE says
> "multidimensional array must have bounds for all dimensions except the first",
> and we can do something similar in the C FE.
>
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>
> 2016-01-14  Marek Polacek  <polacek@redhat.com>
>
> 	PR c/69262
> 	* c-decl.c (grokdeclarator): Provide more information for invalid
> 	array declarations.
>
> 	* gcc.dg/array-15.c: New test.
OK.
jeff



More information about the Gcc-patches mailing list