[Issue 9685] Context pointer of struct isn't copied when a closure is passed by alias

2015-03-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9685

Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

 CC||tta...@gmail.com

--- Comment #6 from Kenji Hara k.hara...@gmail.com ---
*** Issue 10963 has been marked as a duplicate of this issue. ***

--


[Issue 9685] Context pointer of struct isn't copied when a closure is passed by alias

2015-02-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9685

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7c7f173611f827572ce783e8941ea8e10aae58f4
fix Issue 9685 - Context pointer of struct isn't copied when a closure is
passed by alias

https://github.com/D-Programming-Language/dmd/commit/e99cc05b0e61272d0d88759452d6887669555100
Merge pull request #4418 from 9rnsr/fix9685

--


[Issue 9685] Context pointer of struct isn't copied when a closure is passed by alias

2015-02-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9685

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 9685] Context pointer of struct isn't copied when a closure is passed by alias

2015-02-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9685

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7c7f173611f827572ce783e8941ea8e10aae58f4
fix Issue 9685 - Context pointer of struct isn't copied when a closure is
passed by alias

https://github.com/D-Programming-Language/dmd/commit/e99cc05b0e61272d0d88759452d6887669555100
Merge pull request #4418 from 9rnsr/fix9685

Issue 9685 - Context pointer of struct isn't copied when a closure is passed by
alias

--


[Issue 9685] Context pointer of struct isn't copied when a closure is passed by alias

2015-02-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9685

Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull

--- Comment #3 from Kenji Hara k.hara...@gmail.com ---
https://github.com/D-Programming-Language/dmd/pull/4418

--


[Issue 9685] Context pointer of struct isn't copied when a closure is passed by alias

2015-02-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9685

ag0ae...@gmail.com changed:

   What|Removed |Added

   Keywords||wrong-code
 CC||ag0ae...@gmail.com

--


[Issue 9685] Context pointer of struct isn't copied when a closure is passed by alias

2015-02-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9685

John Colvin john.loughran.col...@gmail.com changed:

   What|Removed |Added

 CC||john.loughran.colvin@gmail.
   ||com

--- Comment #1 from John Colvin john.loughran.col...@gmail.com ---
Apparently this is a the same bug, see
http://forum.dlang.org/post/crhogpikareipbtys...@forum.dlang.org

import std.stdio;
struct MapResult(alias fun)
{
@property int front() {return fun();}
@property auto save() {return typeof(this)();}
}
void main()
{
int ys_length = 4;
auto dg = {return MapResult!({return ys_length;})();};
writeln(dg().front); /* 4, correct */
writeln(dg().save.front); /* garbage */
}

--


[Issue 9685] Context pointer of struct isn't copied when a closure is passed by alias

2015-02-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9685

--- Comment #2 from John Colvin john.loughran.col...@gmail.com ---
This doesn't happen with ldc 0.15.1

Observed in dmd git HEAD, 2.066.1 and 2.065.0

--