D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10384 - Array bounds checks are not working in some array-wise expressions
Summary: Array bounds checks are not working in some array-wise expressions
Status: RESOLVED DUPLICATE of issue 2547
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-16 10:10 UTC by Alexander Ivaniuk
Modified: 2013-06-28 02:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Alexander Ivaniuk 2013-06-16 10:10:38 UTC
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 Don 2013-06-28 02:31:59 UTC

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