Re: Why does gcc4 dislike this code?

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

 



walt wrote:

>   *((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 lvalue cast was a nonstandard gcc extension that was removed in 3.4;
in other words this is not valid standard C/C++.

> 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.

http://gcc.gnu.org/gcc-3.4/changes.html

Brian

[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