[Issue 7224] New: Throwing precondition of nothrow function
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jan  4 14:14:13 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7224
           Summary: Throwing precondition of nothrow function
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2012-01-04 14:14:10 PST ---
This function compiles with no errors with DMD 2.058head:
bool foo() {
    throw new Exception("");
}
void main() nothrow
in {
    assert(foo());
} body {}
but main() raises an exception (main() doesn't raise an exception in release
mode).
I think this is a problem.
-- 
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