[Issue 10936] unittest in struct body makes crash dmd

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 1 05:25:29 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10936


Henning Pohl <henning at still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |henning at still-hidden.de


--- Comment #2 from Henning Pohl <henning at still-hidden.de> 2013-09-01 05:25:27 PDT ---
Reduced:
----
struct Vec(string s)
{
    auto opDispatch(string v)()
    {
        return Vec!v.init;
    }

    void foo()
    {
        auto v = Vec!"".init;
        auto p = v.something;
    }
}

Vec!"" v;
----

Replace Vec!v.init with Vec!v() to second assertion instead.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list