Thread overview
[Issue 9060] New: std.range.chain and std.range.zip cannot get frame pointer
Dec 12, 2012
Kenji Hara
November 23, 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@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@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: -------
December 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9060


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
          Component|DMD                         |Phobos
           Platform|x86                         |All
         OS/Version|Windows                     |All


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-11 21:11:27 PST ---
https://github.com/D-Programming-Language/phobos/pull/1004

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 18, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9060



--- Comment #2 from github-bugzilla@puremagic.com 2012-12-17 21:02:49 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/46b612de080bfd7c7a7d0fca090fd43f704acd00 fix Issue 9060 - std.range.chain and std.range.zip cannot get frame pointer

Changes to avoid following two errors:
* "cannot access frame pointer"
* "field xxx must be initialized in constructor, because it is nested struct"

https://github.com/D-Programming-Language/phobos/commit/3b683d99bfd85b89baaf6979320a356b375f4169 Merge pull request #1004 from 9rnsr/fix9060

Issue 9060 - std.range.chain and std.range.zip cannot get frame pointer

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 18, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9060


bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #3 from bearophile_hugs@eml.cc 2012-12-17 21:21:11 PST ---
Seems to work. Thank you.

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