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

--- Comment #3 from Tomasz KamiƄski <tkaminsk at gcc dot gnu.org> ---
Note that this leads to silent breakage, where the global atomic variables for
types with padding, has static initializers in C++11 mode, but dynamic ones in
C++14 and later starting from GCC-13:
std::atomic<X> a(X{1, 2})

Link: https://godbolt.org/z/f6q6Mqf4f

Reply via email to