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

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Walter Bright <[email protected]> ---
Razvan is right. This should not compile. An enum's value should evaluate to a
constant, not a pointer to the heap.

Just like this does not compile:

    class C { }
    C x = new C();

--

Reply via email to