[Issue 18162] New: DMD seg fault on alias this
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 3 02:26:26 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18162
Issue ID: 18162
Summary: DMD seg fault on alias this
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
>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(){}
--
More information about the Digitalmars-d-bugs
mailing list