http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59264
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Instead of reporting a bug, try turning warnings on and fixing them, the
compiler tells you what's wrong with your code:
t.c:2:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main()
^
t.c: In function ‘main’:
t.c:5:3: warning: operation on ‘i’ may be undefined [-Wsequence-point]
i=++i + ++i + i++;
^
t.c:5:3: warning: operation on ‘i’ may be undefined [-Wsequence-point]
t.c:5:3: warning: operation on ‘i’ may be undefined [-Wsequence-point]
t.c:8:3: warning: operation on ‘i’ may be undefined [-Wsequence-point]
i=i++ + ++i + ++i;
^
t.c:8:3: warning: operation on ‘i’ may be undefined [-Wsequence-point]
t.c:8:3: warning: operation on ‘i’ may be undefined [-Wsequence-point]
t.c:11:3: warning: operation on ‘i’ may be undefined [-Wsequence-point]
i=++i + i++ + ++i;
^
t.c:11:3: warning: operation on ‘i’ may be undefined [-Wsequence-point]
t.c:11:3: warning: operation on ‘i’ may be undefined [-Wsequence-point]