https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101692

--- Comment #5 from Eugene Zhiganov <zed at lab127 dot karelia.ru> ---

Eventually I used following workaround:

    RxSm[] rxMachines;
    auto rxPool = new RestRoom();
    for (int k = 0; k < nConnections; k++) {
        auto sm = new RxSm(rxPool);
        rxMachines ~= sm;
        sm.run();
    }

This rxMachines array is just for the purpose of holding references,
since references in linked list are not counted at all by GC.

Now everything works fine, no mystical crashes any more :)
(...and I am beginning to dislike GC even more than before)

But the question remained.
Not counting references in Slist - is that by design?

Reply via email to