diff src/variables.cc @ 2846:52e7c4509983

[project @ 1997-03-26 23:27:35 by jwe]
author jwe
date Wed, 26 Mar 1997 23:29:12 +0000
parents 60ae49e1284f
children 8b262e771614
line wrap: on
line diff
--- a/src/variables.cc
+++ b/src/variables.cc
@@ -956,6 +956,12 @@
       return;
     }
 
+  if (sr->is_static ())
+    {
+      error ("can't make static variable `%s' global", nm.c_str ());
+      return;
+    }
+
   // There must be a better way to do this.   XXX FIXME XXX
 
   if (sr->is_variable ())