re PR c/58235 (Missing diagnostic on assignment to array in c89)
authorJoseph Myers <joseph@codesourcery.com>
Tue, 3 Dec 2013 02:47:13 +0000 (02:47 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 3 Dec 2013 02:47:13 +0000 (02:47 +0000)
commit4c2ecab0e4978f3a4a5b40fe595729b30375386a
treeeb299deee08e7335f846ed167c65364ef8d62b64
parentf9153cba636597ca403e56a2302f05233c4e85a7
re PR c/58235 (Missing diagnostic on assignment to array in c89)

PR c/58235
c:
* c-typeck.c (build_modify_expr): Diagnose assignment to
expression with array type.

testsuite:
* gcc.dg/c90-array-lval-8.c: New test.

From-SVN: r205615
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-array-lval-8.c [new file with mode: 0644]