C parser mistake

Don Mitchell don at allegra.UUCP
Thu Nov 14 03:16:02 AEST 1985


It would be nice if someone would fix the following, long-standing bug
in the Berkeley C compiler.  It parses

	*q++=*p++;

as

	*q++ =* p++;

while System V and Version 8 UNIX compilers parse it as

	*q++ = *p++;

Of course, the compiler should give a warning (if indeed =+ is still
really a part of the C language).



More information about the Comp.unix.wizards mailing list