https://issues.dlang.org/show_bug.cgi?id=16621
Issue ID: 16621 Summary: DMD hang in semantic3 on alias this or segfault Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: kozz...@gmail.com some other info in forum http://forum.dlang.org/post/puufqwobmzseoucnb...@forum.dlang.org 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(){} --