[Issue 13861] compiler segfault with nested struct, cannot access frame

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Dec 15 19:56:24 PST 2014


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

--- Comment #7 from Vlad Levenfeld <vlevenfeld at gmail.com> ---
Ok, looks like I had a bad directory structure. I got dustmite to work
following your suggestion.

Here is a reduced case that segfaults:

struct Foo (alias f) 
{
        auto opIndex ()
        {
            return Bar ();
        }

        struct Bar
        {
            Bar opIndex ()
            {
                return Bar ();
            }
            Bar opIndex (size_t)
            {    
                return Bar ();
            }
        }
}

void main () {
    Foo!(n => n) A; // SEGFAULT
}

--


More information about the Digitalmars-d-bugs mailing list