[Issue 6423] Garbage is returned from `void main()`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 27 08:16:43 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6423
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hsteoh at quickfur.ath.cx
--- Comment #1 from hsteoh at quickfur.ath.cx 2013-08-27 08:16:42 PDT ---
Still happens on git HEAD.
I'm guessing perhaps the compiler got confused by returning a void function?
I'm not sure code like this should be allowed, as it doesn't really make sense
to be able to return void (via a return statement) -- nothing is being
returned.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list