[Issue 14653] scoped!range in foreach crashes

2017-07-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 --- Comment #11 from github-bugzi...@puremagic.com --- Commits pushed to dmd-cxx at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/0fea84354ed1f4339a2910897bf9f1cab87b3384 fix Issue 14653 - scoped!range in foreach crashes https

[Issue 14653] scoped!range in foreach crashes

2015-10-04 Thread via Digitalmars-d-bugs
!range in foreach crashes https://github.com/D-Programming-Language/dmd/commit/e03bfc283f1f2d96bf159c2cba177235a8545d2f Merge pull request #4797 from 9rnsr/fix14653 --

[Issue 14653] scoped!range in foreach crashes

2015-07-05 Thread via Digitalmars-d-bugs
!range in foreach crashes https://github.com/D-Programming-Language/dmd/commit/e03bfc283f1f2d96bf159c2cba177235a8545d2f Merge pull request #4797 from 9rnsr/fix14653 Issue 14653 - scoped!range in foreach crashes --

[Issue 14653] scoped!range in foreach crashes

2015-07-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|-

[Issue 14653] scoped!range in foreach crashes

2015-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 Kenji Hara changed: What|Removed |Added Keywords||pull Hardware|x86_64

[Issue 14653] scoped!range in foreach crashes

2015-06-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 --- Comment #7 from Ketmar Dark --- that's `inferAggregate()` which pulls out aliased type from wrapper, rewriting it from `wrapit()` to `wrapit().rng`, and semantic then rewrites it to `(Wrapper __tmpfordtor3 = wrapit(); , __tmpfordtor3).rng`. it do

[Issue 14653] scoped!range in foreach crashes

2015-06-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 --- Comment #6 from Ketmar Dark --- generated initializer for `alias this` variant: init: __r87 = (Wrapper __tmpfordtor86 = wrapit(); , __tmpfordtor86).rng; generated initializer for proxy variant: init: __r86 = wrapit(); clearly, compiler trie

[Issue 14653] scoped!range in foreach crashes

2015-06-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 --- Comment #5 from Ketmar Dark --- p.s. seems that what triggers the bug is `alias this` in wrapper. removing `alias this` and rewriting wrapper to do simple redirections emits the correct output. i.e. changing `Wrapper` struct to the following one

[Issue 14653] scoped!range in foreach crashes

2015-06-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 --- Comment #4 from Ketmar Dark --- a simplified sample: === import std.stdio : writeln; struct SomeRangeType { int a; alias front = a; void popFront () { ++a; } @property bool empty () { return (a >= 2); } } auto wrapit ()

[Issue 14653] scoped!range in foreach crashes

2015-06-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 --- Comment #3 from Lionello Lunesu --- (In reply to Marc Schütz from comment #2) > @Lionello: Why ICE? My bad. --

[Issue 14653] scoped!range in foreach crashes

2015-06-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 Yuxuan Shui changed: What|Removed |Added Keywords|ice, ice-on-valid-code |wrong-code --

[Issue 14653] scoped!range in foreach crashes

2015-06-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 Yuxuan Shui changed: What|Removed |Added CC||yshu...@gmail.com --

[Issue 14653] scoped!range in foreach crashes

2015-06-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 --- Comment #2 from Marc Schütz --- @Lionello: Why ICE? --

[Issue 14653] scoped!range in foreach crashes

2015-06-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14653 Lionello Lunesu changed: What|Removed |Added Keywords||ice, ice-on-valid-code Summary|