[Issue 6030] Segmentation fault with method overloading and alias this

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 14 16:12:34 PDT 2011


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


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k.hara.pg at gmail.com


--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2011-08-14 16:12:32 PDT ---
Mutually recursion version.

struct A
{
    static B b;
    alias b this;
}

struct B
{
    static A a;
    alias a this;
}

struct C
{
    int opSlice(size_t, size_t){ return 0; }
    int opSlice(size_t, A){ return 0; }
}

void main()
{
    C c;
    c[0..A];
}

-- 
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