Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Jeff Sullivan <jps@zk3.dec.com>
Subject: cc's func prototypes not ANSI?
Date: 1999/04/13	[thread overview]
Message-ID: <371363AC.FB48E8A4@zk3.dec.com> (raw)

This was originally posted in comp.unix.osf.misc (see below).
I will answer it here.

Subject: cc's func prototypes not ANSI?
Date: 28 Mar 1999 20:31:47 GMT
From: bernhard@alpha1.csd.uwm.edu (Bernhard Reiter)
Organization: University of Wisconsin - Milwaukee
Newsgroups: comp.unix.osf.misc

cc probe.c
cc: Error: probe.c, line 2: In the declaration of an unnamed object, the array 
bounds 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;
}



             reply	other threads:[~1999-04-13  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-13  4:00 Jeff Sullivan [this message]
1999-04-13  4:00 ` cc's func prototypes not ANSI? Jeff Sullivan
1999-04-13  4:00 ` Jeff Sullivan
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox