www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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



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: -------
Nov 22 2012
next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Dec 11 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9060




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


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: -------
Dec 17 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9060


bearophile_hugs eml.cc changed:

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



Seems to work. Thank you.

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