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
!range in foreach crashes
https://github.com/D-Programming-Language/dmd/commit/e03bfc283f1f2d96bf159c2cba177235a8545d2f
Merge pull request #4797 from 9rnsr/fix14653
--
!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
--
https://issues.dlang.org/show_bug.cgi?id=14653
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|-
https://issues.dlang.org/show_bug.cgi?id=14653
Kenji Hara changed:
What|Removed |Added
Keywords||pull
Hardware|x86_64
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
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
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
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 ()
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.
--
https://issues.dlang.org/show_bug.cgi?id=14653
Yuxuan Shui changed:
What|Removed |Added
Keywords|ice, ice-on-valid-code |wrong-code
--
https://issues.dlang.org/show_bug.cgi?id=14653
Yuxuan Shui changed:
What|Removed |Added
CC||yshu...@gmail.com
--
https://issues.dlang.org/show_bug.cgi?id=14653
--- Comment #2 from Marc Schütz ---
@Lionello: Why ICE?
--
https://issues.dlang.org/show_bug.cgi?id=14653
Lionello Lunesu changed:
What|Removed |Added
Keywords||ice, ice-on-valid-code
Summary|
14 matches
Mail list logo