Hello! Following patch fixes:
cp_lto_pr65276_1.o: In function `std2::runtime_error::~runtime_error()':^M pr65276_1.C:(.text._ZN4std213runtime_errorD2Ev[_ZN4std213runtime_errorD5Ev]+0x8): undefined reference to `std2::exception::~exception()'^M cp_lto_pr65276_1.o: In function `std2::runtime_error::~runtime_error()':^M pr65276_1.C:(.text._ZN4std213runtime_errorD0Ev[_ZN4std213runtime_errorD5Ev]+0xc): undefined reference to `std2::exception::~exception()'^M cp_lto_pr65276_1.o:(.rodata._ZTVN4std29exceptionE[_ZTVN4std29exceptionE]+0x10): undefined reference to `std2::exception::~exception()'^M cp_lto_pr65276_1.o:(.rodata._ZTVN4std29exceptionE[_ZTVN4std29exceptionE]+0x18): undefined reference to `std2::exception::~exception()'^M collect2: error: ld returned 1 exit status^M link error with g++.dg/lto/pr65276 testcase. 2015-06-16 Uros Bizjak <ubiz...@gmail.com> PR testsuite/65944 * g++.dg/lto/pr65276_0.C: Add std2::exception::~exception() function. Tested on x86_64-linux-gnu CentOS 5.11 (where linking failed) and Fedora 22 (where linking didn't fail). OK for mainline and gcc-5 branch? Uros. 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 { }