Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!psuvax1!gondor.psu.edu!schwartz From: schwartz@gondor.psu.edu (Scott E. Schwartz) Newsgroups: comp.lang.c Subject: reserved words or what? Message-ID: <3086@psuvax1.psu.edu> Date: Fri, 13-Nov-87 22:16:10 EST Article-I.D.: psuvax1.3086 Posted: Fri Nov 13 22:16:10 1987 Date-Received: Sun, 15-Nov-87 11:39:21 EST Sender: netnews@psuvax1.psu.edu Reply-To: schwartz@gondor.psu.edu (Scott E. Schwartz) Organization: Penn State University, University Park, PA Lines: 20 given: main() { int a,b,signed; a = b = signed = 1; } is this legal? PCC on a vax running 4.3BSD and a Sun running SunOS 3.2 doesn't complain. Neither does lint (at least on the sun), except to report that a,b, and signed are set but not used. On the other hand GCC doesn't want to see a variable named signed. Which compiler is broken? Disclaimer: I don't have a copy of the latest ANSI draft, or even an old copy of K&R at hand. -- Scott Schwartz schwartz@gondor.psu.edu