Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!mcvax!ukc!pc
From: pc@ukc.ac.uk (R.P.A.Collinson)
Newsgroups: comp.sys.atari.st
Subject: Lattice C compiler bug
Message-ID: <2330@eagle.ukc.ac.uk>
Date: Tue, 30-Dec-86 19:01:20 EST
Article-I.D.: eagle.2330
Posted: Tue Dec 30 19:01:20 1986
Date-Received: Wed, 31-Dec-86 20:56:36 EST
Reply-To: pc@ukc.ac.uk (R.P.A.Collinson)
Organization: U of Kent at Canterbury, Canterbury, UK
Lines: 20

Whilst on the subject of complaining about people who sell duff C
compilers - here's a reason you might want to worry about the ST
Lattice C compiler.

The following C bits will generate incorrect code:

	char	buffer[BUFSIZ];

	register char *pt;
	register n;

	/* How many bytes left in the buffer please ? */
	n = &buffer[BUFSIZ] - pt;

When I found this bug - I ditched the compiler so I cannot tell you the
answer - I think that it is always zero.

NB. To be fair to Metacomco in the UK - they offered to refund my
money when I reported this bug and said that as far as I was concerned
the `Lattice C compiler' cannot compile C.