I believe that the example below should compile. "gcc
-Wall -Wextra -ansi -pedantic" compiles it without
warning or error.

Here's what I get,

  $ ./tcc -v
  tcc version 0.9.23
  $ ./tcc test.c
  test.c:4: cannot use pointers here

I believe that assignment should be the same as,

  x = 0;

Right?

-Charles

int main(void)
{
  int x;
  x = (char)((void *)0);
  return 0;
}



Charles F. Randall, IV
[EMAIL PROTECTED] (always forwarded)


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to