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

Dennis <[email protected]> changed:

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

--- Comment #1 from Dennis <[email protected]> ---
The problem is that the compiler tries to constant fold when `hello` is `const`
(hence available at compile time), but directly assigning a string literal to a
register is not supported yet.

The best workaround is to define `const(char)* hello = "Hello!\n";`, meaning
the string data is const, but the pointer is mutable.

--

Reply via email to