Bug 18162 – DMD seg fault on alias this

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-03T02:26:26Z
Last change time
2018-01-03T02:48:55Z
Keywords
ice
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=16621

Comments

Comment #0 by bugzilla — 2018-01-03T02:26:26Z
From Daniel Kozak 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 bugzilla — 2018-01-03T02:34:14Z
The fix for https://issues.dlang.org/show_bug.cgi?id=16621 causes this seg fault to go away, so I'm going to resolve it as a duplicate. *** This issue has been marked as a duplicate of issue 16621 ***