Article View: gnu.gcc.bug
Article #2899gcc 1.36 (and 1.36.93) bug 900226_01
From: Ronald Guilmette
Date: Mon, 26 Feb 1990 07:57
Date: Mon, 26 Feb 1990 07:57
18 lines
807 bytes
807 bytes
/* gcc 1.36 (and 1.36.93) bug 900226_01
gcc issues an error message for the first member of the following pair
of declarations. I believe that this is legal ANSI C code. The intent
here is to "forward declare" a static array.
At least one C "expert" has advised me that this should be legal.
*/
static int array[]; /* gets bogus error */
static int array[] = { 1,2,3 };
/*
The error message says:
storage size of `array' isn't known
*/
Technical Details
Message-ID:
<25E8E14D.22080@paris.ics.uci.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!jarthur!uci-ics!gatewayShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!jarthur!uci-ics!gateway From: rfg@paris.ics.uci.edu (Ronald Guilmette) Newsgroups: gnu.gcc.bug Subject: gcc 1.36 (and 1.36.93) bug 900226_01 Message-ID: <25E8E14D.22080@paris.ics.uci.edu> Date: 26 Feb 90 07:57:01 GMT Organization: UC Irvine Department of ICS Lines: 18