www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/13/20:01:33

From: "Martin Ambuhl" <mambuhl AT tiac DOT net>
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: <iCdMCj1ZQ5j2-pn2-U1bLOKdKkegi AT portY12 DOT lanzen DOT net>
NNTP-Posting-Host: p44.tc2.newyo.ny.tiac.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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'.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019