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

ag0ae...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0ae...@gmail.com

--- Comment #2 from ag0ae...@gmail.com ---
(In reply to Walter Bright from comment #1)
> The same error:
[...]
> happens when `enum` is replaced with `auto` so it is not specific to CTFE.

I think you're mistaken. If you leave x at the module level, it's still
initialized statically, i.e. CTFE is involved. The error goes away when x is a
function-local variable.

--

Reply via email to