From: utzoo!decvax!microsof!uw-beave!cornell!vax135!ariel!hou5f!npoiv!eisx!whuxlb!mkg Newsgroups: net.unix-wizar Title: Subtle but dangerous Sun cc bug - (nf) Article-I.D.: whuxlb.1041 Posted: Thu Mar 24 12:46:12 1983 Received: Sat Mar 26 00:15:25 1983 #N:whuxlb:900011:000:482 whuxlb!mkg Mar 24 12:38:00 1983 The two C compilers on the Sun workstation (cc and new_cc) suffer from a bug that causes some "external" variables to be treated as automatic storage rather than static. If you declare variables in between subroutines, these contents of these variables are NOT preserved between subroutine calls. Moving the declares before the first executable statement in the source file seems to cure the problem (make them "static"). Marsh Gosnell BTL Whippany (201) 386-7095 whuxlb!mkg