Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site hou3c.UUCP
Path: utzoo!watmath!clyde!burl!hou3c!ka
From: ka@hou3c.UUCP (Kenneth Almquist)
Newsgroups: net.unix
Subject: Re: PCC compiler bug and odd solution
Message-ID: <355@hou3c.UUCP>
Date: Fri, 2-Mar-84 11:08:20 EST
Article-I.D.: hou3c.355
Posted: Fri Mar  2 11:08:20 1984
Date-Received: Sat, 3-Mar-84 22:04:11 EST
References: <16888@sri-arpa.UUCP>
Organization: Bell Labs, Holmdel, NJ
Lines: 16

A piece of code which caused the compiler to exhibit the same behavior
was posted to net.lang.c a couple of weeks ago.  The code looked like:

	struct s {
		int x ;
	}

	subr(p, q) struct s *p, *q ; {
		*q = *p ;
	}

Because the semicolon after the declaration of "s" was omitted, the routine
"subr" is declared to be a routine returning a structure s rather than a
routine returning int.  The missing semicolon would have been caught by
the compiler if "subr" had been declared to be of type "void".
					Kenneth Almquist