From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,77d671710b1e5dd8,start X-Google-Attributes: gidf678f,public From: bernhard@alpha1.csd.uwm.edu (Bernhard Reiter) Subject: cc's func prototypes not ANSI? Date: 1999/03/28 Message-ID: #1/1 X-Deja-AN: 460103021 Organization: University of Wisconsin - Milwaukee User-Agent: slrn/0.9.5.4 (UNIX) Newsgroups: comp.unix.osf.misc cc probe.c cc: Error: probe.c, line 2: In the declaration of an unnamed object, the array b ounds are incorrectly specified. int y(char [][]); -----------^ The Declaration thows cc off. It seems to be ANSI-C, but I am not sure. One-dim arrays in function declarations work fine. Is it a bug in DEC's cc? Is this the right place to ask this? ;) Bernhard OSF1 V4.0 878 alpha DEC C V5.6-079 on Digital UNIX V4.0 (Rev. 878) probe.c follows: int x(char []); int y(char [][]); int x(char z[2]){ return 0; } int y(char z[3][2]){ return 0; } int main(void) { return 0; }