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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 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: -------