https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86296
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- Ah I tested back to 7.3 but not 5.4 The _GLIBCXX_ASSERTIONS checks were added in GCC 6.1 and I don't think ASan diagnosed stack-use-after-return in 5.x either.