Thread overview | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 01, 2007 [Issue 783] New: Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=783 Summary: Cannot use an array w/ const or variable index as new[] size argument. Product: D Version: 0.178 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: godaves@yahoo.com const arr = [ 1,2,3 ]; void main() { int[] ar2; ar2 = new int[arr[2]]; // OK const i = 2; ar2 = new int[arr[i]]; // "need size of rightmost array, not type arr[i]" size_t j = 2; ar2 = new int[arr[j]]; // "need size of rightmost array, not type arr[j]" } -- |
February 27, 2007 [Issue 783] Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=783 ------- Comment #1 from thomas-dloop@kuehne.cn 2007-02-27 10:47 ------- Added to DStress as http://dstress.kuehne.cn/run/a/array_initialization_32_A.d http://dstress.kuehne.cn/run/a/array_initialization_32_B.d http://dstress.kuehne.cn/run/a/array_initialization_32_C.d http://dstress.kuehne.cn/run/a/array_initialization_32_D.d -- |
September 18, 2007 [Issue 783] Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=783 smjg@iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg@iname.com Keywords| |rejects-valid ------- Comment #2 from smjg@iname.com 2007-09-18 16:24 ------- Please remember to assign keywords to bug reports. To everybody reading this: Please look through issues you've reported and check for missing keywords. -- |
February 18, 2010 [Issue 783] Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=783 Matti Niemenmaa <matti.niemenmaa+dbugzilla@iki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #3 from Matti Niemenmaa <matti.niemenmaa+dbugzilla@iki.fi> 2010-02-18 11:38:38 PST --- *** Issue 3823 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 26, 2010 [Issue 783] Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=783 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei@metalanguage.com AssignedTo|nobody@puremagic.com |bugzilla@digitalmars.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 01, 2012 [Issue 783] Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=783 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |yebblies@gmail.com Version|0.178 |D1 & D2 AssignedTo|bugzilla@digitalmars.com |yebblies@gmail.com --- Comment #4 from yebblies <yebblies@gmail.com> 2012-02-02 01:44:15 EST --- https://github.com/D-Programming-Language/dmd/pull/679 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 01, 2012 [Issue 783] Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=783 --- Comment #5 from yebblies <yebblies@gmail.com> 2012-02-02 02:28:52 EST --- *** Issue 2712 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 01, 2012 [Issue 783] Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=783 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|patch |pull CC| |bugzilla@digitalmars.com --- Comment #6 from Walter Bright <bugzilla@digitalmars.com> 2012-02-01 14:13:40 PST --- Please use 'pull' keyword for ones with a pull request. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 08, 2012 [Issue 783] Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=783 --- Comment #7 from github-bugzilla@puremagic.com 2012-03-08 14:05:09 PST --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/97b4410ba1c55d77f54821249d048add3c2acd47 Merge pull request #679 from yebblies/issue783 Issue 783 - Cannot use an array w/ const or variable index as new[] size argument. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 09, 2012 [Issue 783] Cannot use an array w/ const or variable index as new[] size argument. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=783 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED -- 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