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
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
Please, to run this script of 5 lines:
#!/bin/sh
cat > bug_void.c <