http://d.puremagic.com/issues/show_bug.cgi?id=9060

           Summary: std.range.chain and std.range.zip cannot get frame
                    pointer
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2012-11-22 16:00:27 PST ---
import std.algorithm: map;
import std.range: chain, zip;
void main() {
    auto r = map!(x => 0)([1]);
    chain(r, r);
    zip(r, r);
}


DMD 2.061alpha gives:

...\dmd2\src\phobos\std\range.d(1988): Error: function
std.range.chain!(MapResult!(__lambda2, int[]),MapResult!(__lambda2,
int[])).chain.Result.save cannot get frame pointer to main
...\dmd2\src\phobos\std\range.d(1988): Error: function
std.range.chain!(MapResult!(__lambda2, int[]),MapResult!(__lambda2,
int[])).chain.Result.save cannot get frame pointer to main
...\dmd2\src\phobos\std\range.d(3792): Error: function
std.range.Zip!(MapResult!(__lambda2, int[]), MapResult!(__lambda2,
int[])).Zip.save cannot get frame pointer to main
...\dmd2\src\phobos\std\range.d(3792): Error: function
std.range.Zip!(MapResult!(__lambda2, int[]), MapResult!(__lambda2,
int[])).Zip.save cannot get frame pointer to main


This code compiles and runs correctly in DMD 2.060.

Additional problem: the error messages refer only to the locations inside chain
and zip, with no references to the call lines in main().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to