digitalmars.D.bugs - [Issue 11210] New: -inline rejects valid code with captured AA
- d-bugmail puremagic.com (31/31) Oct 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11210
- d-bugmail puremagic.com (10/10) Oct 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11210
- d-bugmail puremagic.com (11/11) Oct 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11210
http://d.puremagic.com/issues/show_bug.cgi?id=11210 Summary: -inline rejects valid code with captured AA Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: code benjamin-thaut.de PDT --- Dmd rejects the following valid code as soon as it is compiled with -inline import std.stdio; import std.range; import std.algorithm : map; import std.string; import std.typecons; void main(string[] args) { auto content = "one two three"; uint[string] counts; auto result = splitter(content) .map!(a => tuple(a, counts[a])); writefln("%s", result); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 09 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11210 PDT --- The error message is: Error: function D main is a nested function and cannot be accessed from std.format.formatRange!(LockingTextW riter, MapResult!(__lambda2, SplitterResult!(isWhite, string)), char).formatRange -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 09 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11210 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE *** This issue has been marked as a duplicate of issue 4841 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 10 2013