https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120266
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- I suspect the reason for new warnings is just that GCC got better at LTO, so started to see the conflicting (but ABI-compatible) definitions of the exception classes. Those conflicting definitions have been present since GCC 5.1