[Issue 6311] New: Some array ops aren't nothrow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 14 02:38:07 PDT 2011


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

           Summary: Some array ops aren't nothrow
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-07-14 02:32:51 PDT ---
void foo(int[] a) nothrow {
    a[] = a[]; // OK
    a[] = a[] + a[];
    a[] += a[];
}
void main() {}


DMD 2.054 gives:

test.d(3): Error: _arraySliceSliceAddSliceAssign_i is not nothrow
test.d(4): Error: _arraySliceSliceAddass_i is not nothrow
test.d(1): Error: function test.foo 'foo' is nothrow yet may throw

-- 
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