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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Giuseppe D'Angelo <pe...@gcc.gnu.org>:

https://gcc.gnu.org/g:c9a6c1b5a763d0d3f7a369ed281f9009f270939a

commit r16-1488-gc9a6c1b5a763d0d3f7a369ed281f9009f270939a
Author: Giuseppe D'Angelo <giuseppe.dang...@kdab.com>
Date:   Thu Jun 5 16:50:35 2025 +0200

    libstdc++: do not use an unreserved name in _Temporary_buffer [PR119496]

    As the PR observes, _Temporary_buffer was using an unreserved name for a
    member function that can therefore clash with macros defined by the
    user. Avoid that by renaming the member function.

            PR libstdc++/119496

    libstdc++-v3/ChangeLog:

            * include/bits/stl_algo.h: Adjust calls to requested_size.
            * include/bits/stl_tempbuf.h (requested_size): Rename with
            an _M_ prefix.
            * testsuite/17_intro/names.cc: Add a #define for
            requested_size.

    Signed-off-by: Giuseppe D'Angelo <giuseppe.dang...@kdab.com>

Reply via email to