This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Why does gcc4 dislike this code?
- From: walt <wa1ter at myrealbox dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 18 Jun 2008 15:22:41 -0700
- Subject: Why does gcc4 dislike this code?
Hi all,
This is a snippet of code that compiles nicely with gcc3 but not
with gcc4 (4.1.2 to be exact):
*((unsigned long int *) tmp)++ = *((unsigned long int *) b1)++;
error: invalid lvalue in increment
Aside from the obvious question of why?, where could I go to find
the answer for myself? I've looked through the Changelogs for
the early versions of gcc4 but so far I've not spotted anything
to explain the reason for this error message.
Thanks for any hints.