some other info in forum
http://forum.dlang.org/post/[email protected]
hang code example:
auto xxx(T)()
if (is(T == struct))
{
return this;
}
struct Vector2f
{
mixin xxx!(typeof(this));
alias xxx this;
}
void foo(ref const Vector2f pos) {}
void main()
{
Vector2f v;
foo(v);
}
segfault example:
import std.stdio;
auto xxx(T)()
{
return this;
}
struct S
{
mixin xxx!(typeof(this));
alias xxx this;
}
void foo(S pos)
{
writeln(pos);
}
void main(){}
Comment #1 by dlang-bugzilla — 2017-07-02T13:57:45Z
(In reply to Daniel Kozak from comment #0)
> hang code example:
This one seems to be a regression.
Introduced in https://github.com/dlang/dmd/pull/890
> segfault example:
This one was always there.