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)++; | > | | > |

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 >

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) constr