public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Is that a gcc bug?
@ 2000-06-07 17:31 H . J . Lu
  2000-06-07 23:38 ` Martin v. Loewis
  0 siblings, 1 reply; 2+ messages in thread
From: H . J . Lu @ 2000-06-07 17:31 UTC (permalink / raw)
  To: egcs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is that a gcc bug?
  2000-06-07 17:31 Is that a gcc bug? H . J . Lu
@ 2000-06-07 23:38 ` Martin v. Loewis
  0 siblings, 0 replies; 2+ messages in thread
From: Martin v. Loewis @ 2000-06-07 23:38 UTC (permalink / raw)
  To: hjl; +Cc: egcs

> 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?

Looks like a gcc 2.96 bug to me.

Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-07 23:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-07 17:31 Is that a gcc bug? H . J . Lu
2000-06-07 23:38 ` Martin v. Loewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).