March 10, 2006 [Bug 32] New: missing return value and no compile error | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/bugzilla/show_bug.cgi?id=32 Summary: missing return value and no compile error Product: D Version: 0.149 Platform: PC OS/Version: Linux Status: NEW Severity: critical Priority: P2 Component: DMD AssignedTo: braddr@puremagic.com ReportedBy: benoit@tionex.de Compiles without error. int f() { } void main() { f(); } -- |
March 10, 2006 [Bug 32] missing return value and no compile error | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/bugzilla/show_bug.cgi?id=32 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from bugzilla@digitalmars.com 2006-03-10 13:06 ------- This is by design, not a bug. There have been some looong threads arguing about this. Note that it gets a runtime error if it is executed. -- |
Copyright © 1999-2021 by the D Language Foundation