This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Is that a gcc bug?



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);
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]