This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Is that a gcc bug?
- To: egcs at egcs dot cygnus dot com
- Subject: Is that a gcc bug?
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Wed, 7 Jun 2000 17:31:25 -0700
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);
}