https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65513
Mikhail Maltsev <maltsevm at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maltsevm at gmail dot com --- Comment #2 from Mikhail Maltsev <maltsevm at gmail dot com> --- Reproduced on current commit in branch 4.9, fixed on trunk. What is interesting about this bug, is that when I reduced it, I got a testcase identical to PR65154 (which also gives ICE on 5.0). So, here is a testcase reduced in such way, that it's behavior differs (ICE on 4.9, OK for 5.0): namespace std { template <typename _Tp> struct atomic { atomic() = default; atomic(_Tp); }; } class { public: std::atomic<bool> bReadyToFlush; } LogThreadsleLogEntries[10]{};