Article View: gnu.g++.bug
Article #510static const vs. const
From: Dirk Grunwald
Date: Tue, 17 Oct 1989 18:21
Date: Tue, 17 Oct 1989 18:21
18 lines
1108 bytes
1108 bytes
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)
Technical Details
Message-ID:
<8910171821.AA07134@foobar.colorado.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!rpi!tut.cis.ohio-state.edu!FOOBAR.COLORADO.EDU!grunwaldShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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