Re: Why does gcc4 dislike this code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 18, 2008 at 03:45:07PM -0700, walt wrote:
> 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

http://www.google.com/search?q=gcc+lvalue+cast

-cl

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux