D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 13528 - Internal Compiler Error: CTFE DotType:
Summary: Internal Compiler Error: CTFE DotType:
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 critical
Assignee: No Owner
URL:
Keywords: ice, pull
Depends on:
Blocks:
 
Reported: 2014-09-24 17:32 UTC by Ali Cehreli
Modified: 2015-02-18 03:41 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ali Cehreli 2014-09-24 17:32:09 UTC
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
Comment 2 github-bugzilla 2014-12-14 22:29:34 UTC
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
Comment 3 github-bugzilla 2015-02-18 03:41:15 UTC
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