c-decl.c (grokdeclarator): If pedantic, warn about arrays with incomplete element...
authorJoseph Myers <jsm28@cam.ac.uk>
Fri, 1 Dec 2000 19:21:44 +0000 (19:21 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 1 Dec 2000 19:21:44 +0000 (19:21 +0000)
commitc7b828331c353fcda3db1fd0ece39ebe4de41236
tree1eb1ee47410f38b4ee9fffb0043fd1eff1e75bbc
parent21ac293b0e8890b914ede144eb2701a88c5d19f3
c-decl.c (grokdeclarator): If pedantic, warn about arrays with incomplete element type.

* c-decl.c (grokdeclarator): If pedantic, warn about arrays with
incomplete element type.
(grokparms): Before checking for incomplete parameter type, check
the type isn't error_mark_node.

testsuite:
* gcc.dg/c99-array-nonobj-1.c: No longer XFAIL.

From-SVN: r37920
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-array-nonobj-1.c