OSDN Git Service

* c-typeck.c (build_conditional_expr): Do not allow non-lvalue
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jan 2004 00:30:58 +0000 (00:30 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jan 2004 00:30:58 +0000 (00:30 +0000)
commit9b73f1317cee53d669d174c083b7f38f92a78e35
tree1964c9b4b71b361bace08af1119a0b3e78ed1d02
parent2c3bedaee700583a538124dbc51f31eb0e0c87ad
* c-typeck.c (build_conditional_expr): Do not allow non-lvalue
arrays.

testsuite:
* gcc.dg/c90-array-lval-7.c, gcc.dg/c99-array-lval-7.c: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76477 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-array-lval-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-array-lval-7.c [new file with mode: 0644]