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

--- Comment #2 from Laurent Stacul <laurent.stacul at gmail dot com> ---
Ok. To ease your work I wrote this small reproducer:

#include <atomic>

class A {
    struct State {
        int flag;
        std::atomic<State*> next_[];
    };
    void state(int f) {
        State s;
        s.flag = f;
    }
    State state_;
};

$ >g++ -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
-std=gnu++2a -c reproducer.cpp

I attach the preprocessed source.

Regards,
Stac

Reply via email to