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

Kenji Hara <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
           Hardware|x86                         |All
            Version|D1                          |D1 & D2
                 OS|Linux                       |All

--- Comment #1 from Kenji Hara <[email protected]> ---
In D2 git-head, @nogc attribute should accept such stack allocation of
anonymous class.

void foo() @nogc {
    scope bar = new class Object {}; // should be allowed
}

D2 fix:
https://github.com/D-Programming-Language/dmd/pull/3593

--

Reply via email to