https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95154
Bug ID: 95154 Summary: [11 regression] FAIL: g++.dg/abi/pure-virtual1.C -std=c++14 (test for excess errors) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sch...@linux-m68k.org Target Milestone: --- Target: ia64-*-* spawn -ignore SIGHUP /usr/local/gcc/gcc-20200515/Build/gcc/testsuite/g++3/../../xg++ -B/usr/local/gcc/gcc-20200515/Build/gcc/testsuite/g++3/../../ /usr/local/gcc/gcc-20200515/gcc/testsuite/g++.dg/abi/pure-virtual1.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++ -I/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/libstdc++-v3/include/ia64-suse-linux -I/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/libstdc++-v3/include -I/usr/local/gcc/gcc-20200515/libstdc++-v3/libsupc++ -I/usr/local/gcc/gcc-20200515/libstdc++-v3/include/backward -I/usr/local/gcc/gcc-20200515/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++14 -pedantic-errors -Wno-long-long -fno-rtti -nodefaultlibs -lc -L/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/./libstdc++-v3/src/.libs -B/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/./libstdc++-v3/src/.libs -L/usr/local/gcc/gcc-20200515/Build/ia64-suse-linux/./libstdc++-v3/src/.libs -lm -o pure-virtual1.exe /tmp/ccyWJZLT.o:(.data.rel.ro._ZTV1A[_ZTV1A]+0x10): undefined reference to `__cxa_pure_virtual' collect2: error: ld returned 1 exit status compiler exited with status 1 The reference comes from the vtable for A, the weak declaration for __cxa_pure_virtual is missing: .weak _ZTV1A# .section .data.rel.ro._ZTV1A,"awG",@progbits,_ZTV1A,comdat .align 8 .type _ZTV1A#, @object .size _ZTV1A#, 32 _ZTV1A: data8 0 data8 0 data16.ua @iplt(__cxa_pure_virtual#)