[Bug c/58235] Missing diagnostic on assignment to array in c89

2013-12-02 Thread jsm28 at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58235 --- Comment #5 from Joseph S. Myers --- Author: jsm28 Date: Tue Dec 3 02:47:13 2013 New Revision: 205615 URL: http://gcc.gnu.org/viewcvs?rev=205615&root=gcc&view=rev Log: PR c/58235 c: * c-typeck.c (build_modify_expr): Diagnose assignmen

[Bug c/58235] Missing diagnostic on assignment to array in c89

2013-12-02 Thread jsm28 at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58235 Joseph S. Myers changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/58235] Missing diagnostic on assignment to array in c89

2013-08-23 Thread farouk.jouti at live dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58235 --- Comment #4 from farouk jouti --- the link contains all the necessary information about the bug (just check the comments and answers) ;)

[Bug c/58235] Missing diagnostic on assignment to array in c89

2013-08-23 Thread farouk.jouti at live dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58235 farouk jouti changed: What|Removed |Added CC||farouk.jouti at live dot co.uk --- Comment

[Bug c/58235] Missing diagnostic on assignment to array in c89

2013-08-23 Thread olivier.gay at a3 dot epfl.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58235 --- Comment #2 from Olivier Gay --- Still, constraint of assignment (c90, 6.3.16) requires the left operand of assignment to be a modifiable lvalue. But c object array is not a modifiable lvalue as arrays are not modifiable lvalues (6.2.2.1).

[Bug c/58235] Missing diagnostic on assignment to array in c89

2013-08-23 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58235 --- Comment #1 from Andrew Pinski --- This seems correct: See also bug 461. non-lvalue arrays do not decay to pointers in C90/C89.