https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63409
Bug ID: 63409 Summary: [5 Regression] FAIL: g++.dg/lto/pr63270 cp_lto_pr63270_0.o-cp_lto_pr63270_1.o link, -flto -O2 -Wno-odr -fno-linker-plugin Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com This can be triggered on Fedora20 with: make check-c++ RUNTESTFLAGS="--target_board=unix/-fno-use-linker-plugin lto.exp=pr63270_?.C" spawn -ignore SIGHUP /ssd/uros/gcc-build/gcc/testsuite/g++/../../xg++ -B/ssd/uros/gcc-build/gcc/testsuite/g++/../../ cp_lto_pr63270_0.o cp_lto_pr63270_1.o -fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++ -I/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include -I/home/uros/gcc-svn/trunk/libstdc++-v3/libsupc++ -I/home/uros/gcc-svn/trunk/libstdc++-v3/include/backward -I/home/uros/gcc-svn/trunk/libstdc++-v3/testsuite/util -fmessage-length=0 -flto -O2 -Wno-odr -L/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/./libstdc++-v3/src/.libs -B/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/./libstdc++-v3/src/.libs -L/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/./libstdc++-v3/src/.libs -fno-use-linker-plugin -o g++-dg-lto-pr63270-01.exe cp_lto_pr63270_0.o: In function `v8::internal::fn1()': pr63270_0.C:(.text+0xa): undefined reference to `v8::internal::B::B(int)' pr63270_0.C:(.text+0x16): undefined reference to `v8::internal::B::B(int)' pr63270_0.C:(.text+0x22): undefined reference to `v8::internal::A::A(int)' pr63270_0.C:(.text+0x27): undefined reference to `v8::internal::G::m_fn1()' collect2: error: ld returned 1 exit status compiler exited with status 1 output is: cp_lto_pr63270_0.o: In function `v8::internal::fn1()': pr63270_0.C:(.text+0xa): undefined reference to `v8::internal::B::B(int)' pr63270_0.C:(.text+0x16): undefined reference to `v8::internal::B::B(int)' pr63270_0.C:(.text+0x22): undefined reference to `v8::internal::A::A(int)' pr63270_0.C:(.text+0x27): undefined reference to `v8::internal::G::m_fn1()' collect2: error: ld returned 1 exit status FAIL: g++.dg/lto/pr63270 cp_lto_pr63270_0.o-cp_lto_pr63270_1.o link, -flto -O2 -Wno-odr UNRESOLVED: g++.dg/lto/pr63270 cp_lto_pr63270_0.o-cp_lto_pr63270_1.o execute -flto -O2 -Wno-odr