https://issues.dlang.org/show_bug.cgi?id=13087

--- Comment #1 from Kenji Hara <k.hara...@gmail.com> ---
Reduced test case:

struct Vec
{
    int x;
    void foo() const   // const is necessary
    {
        auto n = component!(this, 'x');
    }
}

template component(alias vec, char c)
{
    alias component = vec.x;
}

--

Reply via email to