re PR c/11943 (Accepts invalid declaration "int x[2, 3];" in C99 mode)
authorJoseph Myers <jsm@polyomino.org.uk>
Fri, 24 Oct 2003 15:30:37 +0000 (16:30 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 24 Oct 2003 15:30:37 +0000 (16:30 +0100)
commit88682ff62d51b96c6278e30862068780f5eb6f1d
tree0e20c06d9c4524d1e9acb4a0a01a1f9474f0fd26
parent3d39f00757c94705cd29e629359a3e63c2bbbe80
re PR c/11943 (Accepts invalid declaration "int x[2, 3];" in C99 mode)

* c-parse.in (array_declarator): Use expr_no_commas.
Fixes PR c/11943.

testsuite:
* gcc.dg/c99-arraydecl-2.c: New test.  PR c/11943.

From-SVN: r72900
gcc/ChangeLog
gcc/c-parse.in
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-arraydecl-2.c [new file with mode: 0644]