https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124238
--- Comment #11 from James K. Lowden <jklowden at gcc dot gnu.org> --- (In reply to James K. Lowden from comment #10) > (In reply to Richard Biener from comment #0) > > In stagefeedback I see > > > > [ 3253s] /usr/x86_64-suse-linux/bin/ld: > > /home/abuild/rpmbuild/BUILD/gcc16-16.0.1+git7689-build/gcc-16.0.1+git7689/ > > obj-x86_64-suse-linux/prev-x86_64-suse-linux/libstdc++-v3/src/.libs/ > > libstdc++.a(ext11-inst.o): in function `__gnu_cxx::stdio_filebuf<char, > > std::char_traits<char> >::stdio_filebuf(int, std::_Ios_Openmode, unsigned > > long)': > > [ 3253s] > > /home/abuild/rpmbuild/BUILD/gcc16-16.0.1+git7689-build/gcc-16.0.1+git7689/ > > obj-x86_64-suse-linux/x86_64-suse-linux/libstdc++-v3/include/ext/ > > stdio_filebuf.h:141:(.text. > > _ZN9__gnu_cxx13stdio_filebufIcSt11char_traitsIcEEC2EiSt13_Ios_Openmodem[_ZN9_ > > _gnu_cxx13stdio_filebufIcSt11char_traitsIcEEC5EiSt13_Ios_Openmodem]+0x31): > > undefined reference to `vtable for __gnu_cxx::stdio_filebuf<char, > > std::char_traits<char> >' > > [ 3254s] collect2: error: ld returned 1 exit status > > [ 3254s] make[3]: *** [../../gcc/cobol/Make-lang.in:278: cobol1] Error 1 > > > > Would I be correct that what the linker is missing is associated with this > line from gcc/cobol/lexio.cc ? > > __gnu_cxx::stdio_filebuf<char> outbuf(fdopen(output, "a"), std::ios::out); > > If so, the question is why it's sometimes excluded from the link. $ c++filt '_ZN9__gnu_cxx13stdio_filebufIcSt11char_traitsIcEEC5EiSt13_Ios_Openmodem' __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >::stdio_filebuf(int, std::_Ios_Openmode, unsigned long)
