Is that a gcc bug?

H . J . Lu hjl@valinux.com
Wed Jun 7 17:31:00 GMT 2000


This code compiles ok with gcc 2.95. But with gcc 2.96, I got

# gcc -c v.c
v.c: In function `foo':
v.c:10: invalid use of void expression

Whose bug is it?


-- 
H.J. Lu (hjl@gnu.org)
--
typedef void sigret_t;

static sigret_t print_prompt(int sig)
{
}

void
foo ()
{
  print_prompt (0);
}


More information about the Gcc mailing list