[Issue 7518] New: Regression(2.058): std.parallelism.parallel fails with shared array of strings
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 16 07:12:46 PST 2012
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 at puremagic.com
ReportedBy: robert at octarineparrot.com
--- Comment #0 from Robert Clipsham <robert at 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: -------
More information about the Digitalmars-d-bugs
mailing list