Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!rpi!tut.cis.ohio-state.edu!FOOBAR.COLORADO.EDU!grunwald From: grunwald@FOOBAR.COLORADO.EDU (Dirk Grunwald) Newsgroups: gnu.g++.bug Subject: static const vs. const Message-ID: <8910171821.AA07134@foobar.colorado.edu> Date: 17 Oct 89 18:21:14 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: grunwald@foobar.colorado.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 18 I'm not certain if this is a bug or feature; before, when I have the file: ----------foo.cc---------- const int notStatic = -1; static const int isStatic = -1; -------------------------- compiling & using nm would show that notStatic has space allocated; this is useful if refer to it in other files as ``extern const int notStatic''. the current version of g++ doesn't allocate a variable for either from. if this is the intended action, than I would think that referring to ``extern const int notStatic'' should generate an error. Dirk Grunwald -- Univ. of Colorado at Boulder (grunwald@foobar.colorado.edu)