digitalmars.D.bugs - [Issue 3815] New: Array sum to a constant and assign to not initialized dynamic array
- d-bugmail puremagic.com (24/24) Feb 18 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3815
- d-bugmail puremagic.com (13/13) Feb 18 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3815
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 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: -------
Feb 18 2010
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 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: -------
Feb 18 2010