https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102712
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #1) > Just compile with -D_GLIBCXX_ASSERTIONS Or the more heavyweight -D_GLIBCXX_DEBUG which implies _GLIBCXX_ASSERTIONS too.