From: "Martin Ambuhl" Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP/GCC bug found Date: Sun, 13 Sep 1998 19:55:49 -0400 Organization: Nocturnal Aviation Lines: 19 Message-ID: <6thlos$nc@news-central.tiac.net> References: NNTP-Posting-Host: p44.tc2.newyo.ny.tiac.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk sl AT psycode DOT com DOT REMOVE_THIS wrote in message ... |Hi, | | I'm unsure who is to blaim for the following bug, but here it is: You are. | In the above example, the compiler complains "return;" is used in a |case where "main()" is non-void.. But as you can see, it IS declared |to return void! And illegally so. g++ is smart enough to replace your illegal 'void' with the _required_ 'int'.