http://d.puremagic.com/issues/show_bug.cgi?id=4005

           Summary: std.c.stdlib.exit in CTFE and more
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2010-03-25 14:43:18 PDT ---
What's the right behaviour for this program? I think the CTFE has to stop, but
dmd v2.042 doesn't stop to me:


import std.c.stdlib: exit;
int foo() {
    exit(1);
    return 100;
}
static assert(foo() == 100);
void main() {
    assert(foo() == 100);
    exit(1);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to