[Bug libstdc++/114891] Unconditional use of std::is_pointer_interconvertible_base_of_v in <generator> makes the header unusable with Clang 18

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 14 09:50:52 GMT 2024


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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:4d3b358fd757ddd09cbee202f47939043c78676c

commit r14-10206-g4d3b358fd757ddd09cbee202f47939043c78676c
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Apr 30 09:48:00 2024 +0100

    libstdc++: Guard uses of is_pointer_interconvertible_v [PR114891]

    This type trait isn't supported by Clang 18. It's only used in static
    assertions, so they can just be omitted if the trait isn't available.

    libstdc++-v3/ChangeLog:

            PR libstdc++/114891
            * include/std/generator: Check feature test macro before using
            is_pointer_interconvertible_v.

    (cherry picked from commit 1fbe1a50d86df11f434351cf62461a32747f9710)


More information about the Gcc-bugs mailing list