https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82172
--- Comment #3 from Shane <general+gcc at matley dot com.au> --- The problem disappears in the following cases: - LTO is not enabled - libstdc++ is statically linked - If the C++11 ABI is used - Lower optimisation level - "Downgrade" to c++14 or c++11