Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!accuvax.nwu.edu!nucsrl!gore From: gore@eecs.nwu.edu (Jacob Gore) Newsgroups: comp.lang.c Subject: Prototyping char parameters in ANSI C Message-ID: <3950014@eecs.nwu.edu> Date: 25 Apr 89 03:03:26 GMT Organization: Northwestern U, Evanston IL, USA Lines: 20 Is this valid ANSI C (or dpANS or whatever you want to call it): void f(char); void f(c) char c; { } The version of GNU cc I have complains: t.c: In function f: t.c:5: argument `c' doesn't match function prototype t.c:5: a formal parameter type that promotes to `int' t.c:5: can match only `int' in the prototype Is this rule for real, or is this just a gcc bug? Jacob Gore Gore@EECS.NWU.Edu Northwestern Univ., EECS Dept. {oddjob,chinet,att}!nucsrl!gore