🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by tiemann Tue, 02 Jan 1990 19:49
const function bug
#2115
Author: tiemann
Date: Tue, 02 Jan 1990 19:49
23 lines
1205 bytes
Your line numbers are guaranteed to be different, but here's the fix:

calvin% diff -c2 cplus-decl.c~ cplus-decl.c
*** cplus-decl.c~	Mon Jan  1 18:35:46 1990
--- cplus-decl.c	Tue Jan  2 14:45:55 1990
***************
*** 1796,1801 ****
  	  /* Install a global value.  */
  
! 	  /* A `const' which was not declared `extern' is invisible.  */
! 	  if (TREE_READONLY (x) && ! DECL_EXTERNAL (x))
  	    TREE_PUBLIC (x) = 0;
  
--- 1796,1803 ----
  	  /* Install a global value.  */
  
! 	  /* Rule for VAR_DECLs, but not for other kinds of _DECLs:
! 	     A `const' which was not declared `extern' is invisible.  */
! 	  if (TREE_CODE (x) == VAR_DECL
! 	      && TREE_READONLY (x) && ! DECL_EXTERNAL (x))
  	    TREE_PUBLIC (x) = 0;
  
calvin% 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads