https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65767
--- Comment #10 from Uroš Bizjak <ubizjak at gmail dot com> --- How about adding: --cut here-- Index: g++.dg/lto/pr65276_0.C =================================================================== --- g++.dg/lto/pr65276_0.C (revision 224475) +++ g++.dg/lto/pr65276_0.C (working copy) @@ -59,3 +59,5 @@ }; static ios_base::Init __ioinit; } + +std2::exception::~exception() noexcept { } --cut here-- The above patch fixes the testcase for me.