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

yebblies <yebbl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |yebbl...@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 <yebbl...@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.

--

Reply via email to