https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120635
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:874605e8c44ca4823cedb2881cdbd91f38cff5bc commit r17-2453-g874605e8c44ca4823cedb2881cdbd91f38cff5bc Author: Jakub Jelinek <[email protected]> Date: Thu Jul 16 13:58:52 2026 +0200 libstdc++: Mark std::indirect and std::polymorphic with _GLIBCXX_NO_SPECIALIZATIONS [PR120635] The following marks these two templates with [[_Clang::no_specializations]] because the P3019R14 paper which introduced them already added the restrictions that they shouldn't be specialized by users. I think I'll defer the rest to others (i.e. P2652R2 - std::allocator_traits, P0912R5 - std::coroutine_handle and LWG4535 - <simd>). 2026-07-16 Jakub Jelinek <[email protected]> PR c++/120635 * include/bits/indirect.h (std::indirect, std::polymorphic): Add _GLIBCXX_NO_SPECIALIZATIONS. * testsuite/std/memory/indirect/specialization.cc: New test. * testsuite/std/memory/polymorphic/specialization.cc: New test. Reviewed-by: Jonathan Wakely <[email protected]>
