[Issue 10384] New: Array bounds checks are not working in some array-wise expressions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 16 10:10:38 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10384
Summary: Array bounds checks are not working in some array-wise
expressions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: rride.a at gmail.com
--- Comment #0 from Alexander Ivaniuk <rride.a at gmail.com> 2013-06-16 10:10:38 PDT ---
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[];
--
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