[Issue 12719] struct.c:705: virtual void StructDeclaration::semantic(Scope*): Assertion `parent && parent == sc->parent' failed.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat May 10 14:38:22 PDT 2014


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

monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |monarchdodra at gmail.com
         Resolution|FIXED                       |---

--- Comment #3 from monarchdodra at gmail.com ---
I still ice with this, and it passed in 2.065:

//----
enum canDoIt(R) = is(typeof(Wrapper!R));

struct Wrapper(R)
{
    R r;
    static if (canDoIt!R)
    {}
}

Wrapper!int a;
//----

--


More information about the Digitalmars-d-bugs mailing list