digitalmars.D.bugs - [Issue 3823] New: An uncommon case of dynamic array creation
- d-bugmail puremagic.com (24/24) Feb 18 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3823
- d-bugmail puremagic.com (13/13) Feb 18 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3823
http://d.puremagic.com/issues/show_bug.cgi?id=3823 Summary: An uncommon case of dynamic array creation 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 void main() { int[1] a = [10]; int i; int[] b = new int[a[i]]; } This code seems correct, but the compiler prints: test.d(5): need size of rightmost array, not type a[i] (Sorry for the bad title of this bug report, I don't know a better title.) -- 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=3823 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:38:38 PST --- *** This issue has been marked as a duplicate of issue 783 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 18 2010