www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 32] New: missing return value and no compile error

reply d-bugmail puremagic.com writes:
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();
}


-- 
Mar 10 2006
parent d-bugmail puremagic.com writes:
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.


-- 
Mar 10 2006