https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87618
Bug ID: 87618 Summary: Missing symbol for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf() Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel at constexpr dot org Target Milestone: --- $ cat stringbuf.cpp #include <sstream> int main() { std::stringbuf sb; return 0; } $ g++ stringbuf.cpp /usr/bin/ld: /tmp/ccKu7olJ.o: in function `main': stringbuf.cpp:(.text+0x11): undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf()' collect2: error: ld returned 1 exit status $ g++ --version g++ (GCC) 9.0.0 20181014 (experimental) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.