digitalmars.D.bugs - [Issue 7518] New: Regression(2.058): std.parallelism.parallel fails with shared array of strings
- d-bugmail puremagic.com (37/37) Feb 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7518
- d-bugmail puremagic.com (24/24) Feb 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7518
- d-bugmail puremagic.com (18/18) Feb 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7518
- d-bugmail puremagic.com (8/8) Feb 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7518
- d-bugmail puremagic.com (9/9) Feb 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7518
http://d.puremagic.com/issues/show_bug.cgi?id=7518 Summary: Regression(2.058): std.parallelism.parallel fails with shared array of strings Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: robert octarineparrot.com --- Comment #0 from Robert Clipsham <robert octarineparrot.com> 2012-02-16 15:12:45 GMT --- The following code: ---- import std.parallelism; shared string[] options; void main() { foreach(option; parallel(options)) { } } ---- Worked with dmd 2.057 but fails with dmd 2.058, with the errors: ---- /Users/robert/.dvm/compilers/dmd-2.058/bin/../src/phobos/std/parallelism.d(3858): Error: template std.array.empty(T) does not match any function template declaration /Users/robert/.dvm/compilers/dmd-2.058/bin/../src/phobos/std/parallelism.d(3858): Error: template std.array.empty(T) cannot deduce template function from argument types !()(shared(immutable(char)[][])) ---- Tested on OS X and Linux. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7518 David Simcha <dsimcha yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsimcha yahoo.com Summary|Regression(2.058): |std.array.empty doesn't |std.parallelism.parallel |work for shared arrays |fails with shared array of | |strings | --- Comment #1 from David Simcha <dsimcha yahoo.com> 2012-02-16 07:18:28 PST --- The root cause has nothing to do with std.parallelism. empty() should work for shared arrays. import std.array; void main() { shared string[] stuff; stuff.empty; } test.d(5): Error: template std.array.empty(T) does not match any function template declaration test.d(5): Error: template std.array.empty(T) cannot deduce template function from argument types !()(shared(immutable(char)[][])) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7518 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla digitalmars.com --- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2012-02-27 19:21:47 PST --- This reduces to: bool empty(T)(in T[] a) { return !a.length; } void main() { shared string[] stuff; stuff.empty(); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 27 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7518 --- Comment #3 from github-bugzilla puremagic.com 2012-02-28 18:20:37 PST --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/224fb68cb3fc16f5ad0e2caaae3ad0623c06b04c fix Issue 7518 - std.array.empty doesn't work for shared arrays -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 28 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7518 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 28 2012