[Issue 11763] [ICE] Internal error: ../ztc/cgcs.c 351

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 29 11:17:41 PDT 2014


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

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
           Assignee|nobody at puremagic.com        |yebblies at gmail.com

--- Comment #4 from yebblies <yebblies at gmail.com> ---

Reduced:

struct NoDtor {}

struct HasDtor
{
    NoDtor func()
    {
        return NoDtor();
    }
    ~this() {}
}

void main() 
{ 
    HasDtor().func(); 
}

The glue layer tries to take the address of func's return, but doesn't use
addressElem and just ends up making a mess.  The backend ices because (OPaddr
(OPcall ...)) is invalid.

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

--


More information about the Digitalmars-d-bugs mailing list