https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126111
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Jonathan Wakely <[email protected]>: https://gcc.gnu.org/g:a96a9ea90e609341dd3dee0a97ea24c2c050d149 commit r16-9299-ga96a9ea90e609341dd3dee0a97ea24c2c050d149 Author: Jonathan Wakely <[email protected]> Date: Mon Jul 13 17:57:50 2026 +0100 libstdc++: Fix std module to work with --disable-wchar_t [PR126111] We should not try to export names which are not declared if GCC is configured with --disable-wchar_t. We should also not define the wide stream aliases in <syncstream> and <spanstream>. libstdc++-v3/ChangeLog: PR libstdc++/126111 * include/std/format (__format::__write_escape_seq): Remove unnecessary alias declaration. * include/std/spanstream (wspanbuf, wispanstream, wospanstream) (wspanstream): Only declare for _GLIBCXX_USE_WCHAR_T. * include/std/syncstream (wsyncbuf wosyncstream): Likewise. * src/c++23/std.cc.in: Add preprocessor checks for _GLIBCXX_USE_WCHAR_T to names which depend on it. Reviewed-by: Tomasz KamiÅski <[email protected]> (cherry picked from commit fb0c03ee7afca608cba0419629184b8f442085e2)
