[Issue 21905] case of infinite loop when combining IFTI, `ref`, and `alias this` on static instance
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 7 23:46:07 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21905
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|infinite loop when |case of infinite loop when
|compiling |combining IFTI, `ref`, and
|std.algorithm.each on a |`alias this` on static
|type with static range |instance
|primitives |
--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
reduced:
---
struct Conv
{
static StaticIterable b;
alias b this;
}
struct StaticIterable
{
static Conv b;
alias b this;
}
void each(T)(ref T r)
{
return ;
}
void main()
{
StaticIterable.each!();
}
---
--
More information about the Digitalmars-d-bugs
mailing list