Path: 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 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