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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

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

commit r15-780-gb2fdd508d7e63158e9d2a6dd04f901d02900def3
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed May 22 10:32:43 2024 +0100

    libstdc++: Guard use of sized deallocation [PR114940]

    Clang does not enable -fsized-deallocation by default, which means it
    can't compile our <stacktrace> and <generator> headers.

    Make the __cpp_lib_generator macro depend on the compiler-defined
    __cpp_sized_deallocation macro, and change <stacktrace> to use unsized
    deallocation when __cpp_sized_deallocation isn't defined.

    libstdc++-v3/ChangeLog:

            PR libstdc++/114940
            * include/bits/version.def (generator): Depend on
            __cpp_sized_deallocation.
            * include/bits/version.h: Regenerate.
            * include/std/stacktrace (_GLIBCXX_SIZED_DELETE): New macro.
            (basic_stacktrace::_Impl::_M_deallocate): Use it.

Reply via email to