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

--- Comment #5 from Walter Bright <[email protected]> ---
For example:

 void main()
 {
    enum pi = new int(3);
    *pi = 4;
 }

emits:

  foo4.d(4): Error: cannot use non-constant CTFE pointer in an initializer
'&[3][0]'

This error message should be printed for the bug case.

--

Reply via email to