Bug 3816 – Array op: sum and assign to not initialized array

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-02-18T10:12:00Z
Last change time
2015-06-09T01:27:41Z
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2010-02-18T10:12:22Z
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 }
Comment #1 by simen.kjaras — 2011-02-21T14:36:08Z
*** This issue has been marked as a duplicate of issue 2547 ***