www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3816] New: Array op: sum and assign to not initialized array

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3816

           Summary: Array op: sum and assign to not initialized array
           Product: D
           Version: 2.040
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean invisibleduck.org
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2010-02-18 10:12:22 PST ---
This prints nothing, and there are no errors at compile time or run time:

import std.stdio: writeln;
void main() {
    int[] a1 = [1, 2, 3];
    int[] a2 = [4, 5, 6];
    int[] a3;
    a3[] = a1[] + a2[];
    writeln(a3); // prints nothing
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3816


Simen Kjaeraas <simen.kjaras gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |simen.kjaras gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Simen Kjaeraas <simen.kjaras gmail.com> 2011-02-21 14:36:08
PST ---
*** 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: -------
Feb 21 2011