https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145
--- Comment #21 from Boris Kolpackov <boris at kolpackov dot net> --- Speaking of possible fixes, I had this crazy idea, not sure if it is technically possible though: what if libstdc++ throws some custom exception that derives from both version of ios::failure? This way both old and new ABI users will be able to catch it via the respective bases.