C Compiler bugs

Lawrence V. Cipriani lvc at tut.cis.ohio-state.edu
Thu Jun 9 12:14:39 AEST 1988


In article <8045 at brl-smoke.ARPA>, gwyn at brl-smoke.ARPA (Doug Gwyn ) writes:

>>As far as the compiler is concerned main is just another subroutine.
>Ok, then it cannot complain if main is (inadvertently) declared as
>returning a structure.

Sure it can, as long as its only a *warning* and not an *error*.

>I thought you had said that the compiler had been "fixed" so that
>it did not allow the (inadvertent) declaration of main as returning
>a structure that led to the run-time core dump previously reported.

No, the "fixed" compiler would still compile the code, but the
program wouldn't core dump on exit.  I still don't know how this
was accomplished ...

-- 
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.lang.c mailing list