import std.traits; mixin template MyTemplate() { void foo() { pragma(msg, __traits(getMember, typeof(this), "foo")); } } class A { mixin MyTemplate; } void main() { auto a = new A(); } Error: Internal Compiler Error: CTFE DotType: this.A while evaluating pragma(msg, __traits(getMember, A, "foo")) Ali
https://github.com/D-Programming-Language/dmd/pull/4208
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/419a8139374cd2ae1de7c2698c7bb73ca80f3b01 fix Issue 13528 - Internal Compiler Error: CTFE DotType
Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/419a8139374cd2ae1de7c2698c7bb73ca80f3b01 fix Issue 13528 - Internal Compiler Error: CTFE DotType