gcc bug (possibly)

Tim Budd budd at mist.cs.orst.edu
Sat Mar 4 05:45:38 AEST 1989


Unless I am seriously mistaken in my understanding of prototypes, our version 
of gcc produces an error in what I believe is a correct program.  
Try the following:

extern int foo ( short );

int foo(x)
short x;
{ ; }

I get a message that the argument doesn't match the prototype.
Works fine if I use int in place of short.

Anybody know if this has been fixed?



More information about the Comp.lang.c mailing list