C Compiler bugs (was Re: Speaking of ksh)

Lawrence V. Cipriani lvc at tut.cis.ohio-state.edu
Sun Jun 5 22:03:21 AEST 1988


Following up from comp.unix.wizards are amusing C Compiler bugs:

Then there was the bug where if you had a structure declaration right
before main and forget to end it with a ; the program would core dump
on exit:

	struct blob {
		int a, b, c;
	} /* missing ; */

	main(argc, argv) ...

This is also on old 3B compilers, fixed on newer ones.

-- 
Larry Cipriani, AT&T Network Systems and Ohio State University
Domain: lvc at tut.cis.ohio-state.edu
Path: ...!cbosgd!osu-cis!tut.cis.ohio-state.edu!lvc (strange but true)



More information about the Comp.unix.wizards mailing list