digitalmars.D.bugs - [Issue 9560] New: Too many error messages from std.array
- d-bugmail puremagic.com (62/62) Feb 21 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9560
- d-bugmail puremagic.com (14/14) Jul 13 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9560
http://d.puremagic.com/issues/show_bug.cgi?id=9560 Summary: Too many error messages from std.array Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic Severity: minor Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc import std.algorithm: sort, group; void main() pure { group(sort([1])); } Maybe that code reveals a missing template constraint, dmd 2.063alpha: temp2b.d(3): Error: pure function 'main' cannot call impure function 'sort' temp2b.d(3): Error: pure function 'main' cannot call impure function 'group' C:\dmd2\src\phobos\std\array.d(2095): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2096): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2108): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2109): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2119): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2120): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2121): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2124): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2127): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2128): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2128): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2129): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2133): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2137): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2144): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2146): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2147): Error: this for _data needs to be type Appender not type Appender!(string) C:\dmd2\src\phobos\std\array.d(2160): Error: this for _data needs to be type Appender not type const(Appender!(string)) C:\dmd2\src\phobos\std\array.d(2160): Error: this for _data needs to be type Appender not type const(Appender!(string)) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 21 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9560 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME With 2.064a (a608afd9b4d756bb4be3f5ebfa8bb471176be04d): test.d(3): Error: pure function 'D main' cannot call impure function 'std.algorithm.sort!("a < b", cast(SwapStrategy)0, int[]).sort' There's no error message flood. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 13 2013