https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126111

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Jonathan Wakely
<[email protected]>:

https://gcc.gnu.org/g:7761e534ffd1d0194c180e5e3ad7630d38336d9a

commit r15-11383-g7761e534ffd1d0194c180e5e3ad7630d38336d9a
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)

Reply via email to