* cc's func prototypes not ANSI?
@ 1999-03-28 5:00 Bernhard Reiter
0 siblings, 0 replies; only message in thread
From: Bernhard Reiter @ 1999-03-28 5:00 UTC (permalink / raw)
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-03-28 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-28 5:00 cc's func prototypes not ANSI? Bernhard Reiter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox