Re: Typecast bug

2006-04-27 Thread Gabriel Dos Reis
[EMAIL PROTECTED] writes: | On 26 Apr 2006, Gabriel Dos Reis wrote: | | [EMAIL PROTECTED] writes: | | | It is gcc 4.1.0, --target=arm-elf compiled on an Intel platform and | | GNU/Linux. | | | | The following construct: | | | | void *p; | | | | ((char *)p)++; | | | | makes the

Re: Typecast bug

2006-04-26 Thread Gabriel Dos Reis
[EMAIL PROTECTED] writes: | It is gcc 4.1.0, --target=arm-elf compiled on an Intel platform and | GNU/Linux. | | The following construct: | | void *p; | | ((char *)p)++; | | makes the compiler to issue an error message, namely | invalid lvalue in increment | | The ((char *)p) construct

Re: Typecast bug

2006-04-26 Thread zoltan
On 26 Apr 2006, Gabriel Dos Reis wrote: [EMAIL PROTECTED] writes: | It is gcc 4.1.0, --target=arm-elf compiled on an Intel platform and | GNU/Linux. | | The following construct: | | void *p; | | ((char *)p)++; | | makes the compiler to issue an error message, namely | invalid

Typecast bug

2006-04-25 Thread zoltan
It is gcc 4.1.0, --target=arm-elf compiled on an Intel platform and GNU/Linux. The following construct: void *p; ((char *)p)++; makes the compiler to issue an error message, namely invalid lvalue in increment The ((char *)p) construct is perfectly valid object, a char pointer which