www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10384] New: Array bounds checks are not working in some array-wise expressions

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: rride.a gmail.com


--- Comment #0 from Alexander Ivaniuk <rride.a 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: -------
Jun 16 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10384


Don <clugdbug yahoo.com.au> changed:

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


--- Comment #1 from Don <clugdbug yahoo.com.au> 2013-06-28 02:31:59 PDT ---
*** This issue has been marked as a duplicate of issue 2547 ***

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