🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2878

consts

#2878
From: Jeff Vogel
Date: Wed, 21 Feb 1990 21:20
18 lines
933 bytes
I just started using gcc because I want the ANSI C advantages.

One thing I noticed is that you can't seem to be able to do this



const int MAX
int a[MAX];

gcc complains that it is a variable indexed definition of array a.
Do I still have to use a #define even though I am using
gcc?

  Jeff Vogel                      |  PO Box 5173        
  jlv@cs.brown.edu                |  Brown University    
  uunet!brunix!jlv                |  Providence, RI 02912
  jlv@browncs.bitnet              |  401-863-7637, 401-421-6496 
Technical Details
Message-ID: <30085@brunix.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!brunix!jlv

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!brunix!jlv
From: jlv@cs.brown.edu (Jeff Vogel)
Newsgroups: gnu.gcc.bug
Subject: consts
Message-ID: <30085@brunix.UUCP>
Date: 21 Feb 90 21:20:37 GMT
Sender: news@brunix.UUCP
Reply-To: jlv@cs.brown.edu (Jeff Vogel)
Distribution: gnu
Organization: Brown University Department of Computer Science
Lines: 18