www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6311] New: Some array ops aren't nothrow

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bearophile_hugs eml.cc



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: -------
Jul 14 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6311


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 8651 ***

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