Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Should #include ; compile? Message-ID: <15253@smoke.brl.mil> Date: 19 Feb 91 23:33:34 GMT References: <7605@jhunix.HCF.JHU.EDU> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 10 In article <7605@jhunix.HCF.JHU.EDU> barrett@jhunix.HCF.JHU.EDU (Dan Barrett) writes: >Should this program compile? > #include ; > main() {} Since it violates at least one syntax rule in the C standard, a diagnostic is required from a conforming implementation. The failure of main() to return a value results in undefined behavior, by the way.