On Thursday, 7 June 2018 at 21:32:54 UTC, Jonathan M Davis wrote:

struct S
{
    int* ptr = new int(42);
}


Is that supposed to compile? -> https://run.dlang.io/is/SjUEOu

Error: cannot use non-constant CTFE pointer in an initializer &[42][0]

Reply via email to