This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]