Hello,
I have this struct:

struct S{
    uint kind;
    void[N] data_;

}

Instances of struct S are allocated by standard GC new and S.data_ can contain pointers/ranges to GC allocated data. If is GC disabled then program run fine. But when is GC enabled then it fail randomly.

If the definition of S look like this:

struct S{
    void[N] data_;
    uint kind;
}

then program run fine with GC.enable.

Whats the problem? Something with alignment?



Reply via email to