Bug 10384 – Array bounds checks are not working in some array-wise expressions

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-16T10:10:00Z
Last change time
2013-06-28T02:31:59Z
Assigned to
nobody
Creator
rride.a

Comments

Comment #0 by rride.a — 2013-06-16T10:10:38Z
The following code should generate runtime exception during evaluation of c[2] = b[2] + a[2], but it doesn't happen. auto b = [1, 2]; auto a = [2, 3, 4]; int c [] = new int[3]; c[] = b[] + a[];
Comment #1 by clugdbug — 2013-06-28T02:31:59Z
*** This issue has been marked as a duplicate of issue 2547 ***