PR c/58235
commit39f74d6673195737d5b8c6880b8c1ab9c1318cd2
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Dec 2013 02:47:13 +0000 (3 02:47 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Dec 2013 02:47:13 +0000 (3 02:47 +0000)
treeeb299deee08e7335f846ed167c65364ef8d62b64
parentd47c8f3ebe87255a60f05566863585feeb91128d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205615 138bc75d-0d04-0410-961f-82ee72b054a4
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]