digitalmars.D.bugs - [Issue 3343] New: Crash by "auto main(){}"
- d-bugmail puremagic.com (18/18) Sep 25 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3343
- d-bugmail puremagic.com (20/23) Sep 25 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3343
- d-bugmail puremagic.com (12/12) Oct 13 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3343
http://d.puremagic.com/issues/show_bug.cgi?id=3343 Summary: Crash by "auto main(){}" Product: D Version: 2.032 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: rayerd.wiz gmail.com PDT --- It is simple bug. auto main(){} -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 25 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3343 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |clugdbug yahoo.com.auIt is simple bug. auto main(){}It has a simple patch. func.c, line 567 (DMD 2.032): default: goto Lmainerr; } + if (!f->nextOf()) + error("must return int or void"); + else if (f->nextOf()->ty != Tint32 && f->nextOf()->ty != Tvoid) error("must return int or void, not %s", f->nextOf()->toChars()); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 25 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3343 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED 13:48:09 PDT --- Fixed dmd 1.049 and 2.034 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 13 2009