[Issue 6907] ice(interpret.d) delete expressions crash interpreter

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Dec 10 02:54:41 PST 2015


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

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |yebblies at gmail.com
           Hardware|Other                       |All
            Summary|[CTFE] delete statements    |ice(interpret.d) delete
                   |should be permitted         |expressions crash
                   |                            |interpreter
                 OS|Windows                     |All
           Severity|enhancement                 |major

--- Comment #1 from yebblies <yebblies at gmail.com> ---
The compiler currently crashes, since at least 2.066.

int ice6097a()
{
    scope o = new Object();
    return 1;
}

int ice6097b()
{
    Object o;
    delete o;
    return 1;
}

static assert(ice6097a());
static assert(ice6097b());

At the very least they should not crash.

--


More information about the Digitalmars-d-bugs mailing list