rfrench@ATHENA.MIT.EDU ("Robert S. French") (09/03/89)
This has probably been asked before, but I haven't seen an answer... The following program compiles fine: int foo(unsigned short a); foo(unsigned short a) { } while this program fails with an error: int foo(unsigned short a); foo(a) unsigned short a; { } gcc version 1.35 /mit/gnu/vaxlib/gcc-cpp -v -undef -D__GNUC__ -Dvax -Dunix -D__vax__ -D__unix__ /tmp/foo.c /tmp/cc012693.cpp GNU CPP version 1.35 /mit/gnu/vaxlib/gcc-cc1 /tmp/cc012693.cpp -quiet -dumpbase /tmp/foo.c -version -o /tmp/cc012693.s GNU C version 1.35 (vax) compiled by GNU C version 1.35. /tmp/foo.c: In function foo: /tmp/foo.c:5: argument `a' doesn't match function prototype /tmp/foo.c:5: a formal parameter type that promotes to `int' /tmp/foo.c:5: can match only `int' in the prototype Rob