tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] casting bug?


From: charlesrandall4-tinycc
Subject: [Tinycc-devel] casting bug?
Date: Sun, 10 Jul 2005 22:51:04 -0700 (PDT)

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
address@hidden (always forwarded)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]