February 18, 2010 [Issue 3815] New: Array sum to a constant and assign to not initialized dynamic array | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3815 Summary: Array sum to a constant and assign to not initialized dynamic 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 09:55:05 PST --- import std.stdio: writeln; void main() { int[] a1 = [1, 2, 3]; auto a3 = a1[] + 4; writeln(a3); // 1 2 3 0 1935766371 1768515939 1764585331 } At the end a3 contains garbage, and there's no compile-time error. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 18, 2010 [Issue 3815] Array sum to a constant and assign to not initialized dynamic array | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3815 Matti Niemenmaa <matti.niemenmaa+dbugzilla@iki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |matti.niemenmaa+dbugzilla@i | |ki.fi Resolution| |DUPLICATE --- Comment #1 from Matti Niemenmaa <matti.niemenmaa+dbugzilla@iki.fi> 2010-02-18 11:20:29 PST --- *** This issue has been marked as a duplicate of issue 3066 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation