Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!snoopy.crd.ge.com!tiemann From: tiemann@snoopy.crd.ge.com Newsgroups: gnu.g++.bug Subject: const function bug Message-ID: <9001021959.AA15883@snoopy.crd.Ge.Com> Date: 2 Jan 90 19:59:27 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: tiemann@wheaties.ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 And this: calvin% diff -c2 cplus-decl.c~ cplus-decl.c *** cplus-decl.c~ Tue Jan 2 14:45:55 1990 --- cplus-decl.c Tue Jan 2 14:55:16 1990 *************** *** 1571,1575 **** /* A `const' which was not declared `extern' and is in static storage is invisible. */ ! if (TREE_READONLY (newdecl) && TREE_STATIC (newdecl) && ! DECL_EXTERNAL (newdecl)) TREE_PUBLIC (newdecl) = 0; --- 1571,1576 ---- /* A `const' which was not declared `extern' and is in static storage is invisible. */ ! if (TREE_CODE (newdecl) == VAR_DECL ! && TREE_READONLY (newdecl) && TREE_STATIC (newdecl) && ! DECL_EXTERNAL (newdecl)) TREE_PUBLIC (newdecl) = 0; Michael