[Issue 9060] New: std.range.chain and std.range.zip cannot get frame pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 22 16:00:28 PST 2012


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: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list