[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
Mon May 12 06:32:52 PDT 2014


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

--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to monarchdodra from comment #3)
> 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;
> //----

https://github.com/D-Programming-Language/dmd/pull/3544

--


More information about the Digitalmars-d-bugs mailing list