Change to lvalue casting in gcc v4.01

corey taylor corey.taylor@gmail.com
Tue Sep 13 15:10:00 GMT 2005


Kenkahn,

  Starting with 3.4 these are the rules for C++ and C:

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

  I do not know if the deprecation in C was removed in 4.0

corey

On 9/13/05, kenkahn@optonline.net <kenkahn@optonline.net> wrote:
> >>     char *buffer[1024];
> >>     *((uint32_t)buffer) = 0x1234;
> >
> >I don't believe that has ever been valid.
> 
> *SIGH* I meant to write
> 
>       char buffer[1024];
>       *((uint32_t)buffer) = 0x1234;
> 
> Is that better (and allowed)?
>



More information about the Gcc-help mailing list