Re: Bug on sizeof(void) == 1, must be undefined or negative, == -100000.

2005-06-17 Thread jc-nospam
On Jun 17, 2005, at 17:31:34, [EMAIL PROTECTED] wrote: > Since this is a GNU extension, GCC defines as adding 1. See the > documentation > where this is documented. > http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Pointer-Arith.html#Pointer- > Arith > > > In GNU C, addition and subtraction oper

Re: Bug on sizeof(void) == 1, must be undefined or negative, == -100000.

2005-06-17 Thread jc-nospam
On Jun 17, 2005, at 17:05:37, [EMAIL PROTECTED] wrote: > This is invalid code and a GNU extension to take the sizeof(void). The > reason > why GCC defines it as 1 is because you can do the following: > void *a; > a++; > > If you want to error out on GNU extensions, use -pedantic-errors. > > Than

Bug on sizeof(void) == 1, must be undefined or negative, == -100000.

2005-06-17 Thread jc-nospam
Please, to run this script of 5 lines: #!/bin/sh cat > bug_void.c <