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

Kenji Hara <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
           Hardware|x86_64                      |All
                 OS|Linux                       |All
           Severity|enhancement                 |major

--- Comment #2 from Kenji Hara <[email protected]> ---
I also confirmed it in Win32.
Reduced test case:

void main()
{
    auto c = new C;
    c.insert();
}

class C
{
    this() {}

pure nothrow   // necessary
    new(size_t sz)
    {
        void[] a = new void[](sz);
        return a.ptr;
    }

    void insert() { }
}

--

Reply via email to