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

Iain Buclaw <[email protected]> changed:

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

--- Comment #9 from Iain Buclaw <[email protected]> ---
Arguably, pointer to struct initializers suffer from the same problem.
---
module diag;
struct S
{
    int a;
}
S* s = new S;
---
Error: variable diag.s is a pointer to mutable struct. Only pointers to const,
immutable or shared struct thread local variable are allowed, not S*
---

--

Reply via email to