| Thread overview | ||||||
|---|---|---|---|---|---|---|
|
September 11, 2014 [Issue 12202] SortedRange + alias this + foreach => Segmentation fault | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12202 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx -- | ||||
September 11, 2014 [Issue 12202] SortedRange + alias this + foreach => Segmentation fault | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12202 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice Severity|normal |critical --- Comment #1 from hsteoh@quickfur.ath.cx --- Reduced test case: ------ struct S(T) { import std.range; } unittest { auto a1 = S!int(); foreach(i, e; a1) { } } ------ Seems this has nothing to do with sortedRange, it's a compiler bug. -- | ||||
September 11, 2014 [Issue 12202] SortedRange + alias this + foreach => Segmentation fault | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12202 --- Comment #2 from hsteoh@quickfur.ath.cx --- OK, managed to cut it down to an almost bare-minimal test case: ----range.d---- @property front()() { } --------------- ----test.d---- struct S { import range; } unittest { S a1; foreach(i, e; a1) { } } --------------- Compiler command: dmd -main -unittest test.d -- | ||||
January 09, 2017 [Issue 12202] SortedRange + alias this + foreach => Segmentation fault | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12202 Martin Krejcirik <mk@krej.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Martin Krejcirik <mk@krej.cz> --- All examples produce an error message since 2.071 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply