https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123921
--- Comment #2 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:4a514ea759f6045ef091504f2afcf4b618fe2639 commit r16-7259-g4a514ea759f6045ef091504f2afcf4b618fe2639 Author: Jakub Jelinek <[email protected]> Date: Tue Feb 3 14:22:46 2026 +0100 libstdc++: Define __cpp_lib_define_static [PR123921] I've totally missed the P3491R3 paper (define_static_{string,object,array}) comes with its own feature test macro - __cpp_lib_define_static 202506 which should appear in <version> and <meta>. The paper contains 3 parts, std::is_string_literal, std::meta::reflect_constant_{string,array} and std::define_static_{string,object,array}. The first part is implementable without reflection, the third part in theory would be also implementable without reflection but usually will be (and in libstdc++ is) implemented using reflection, and the middle part is really part of reflection. So dunno how useful this FTM actually is, maybe just for cases where some implementation does implement reflection and doesn't implement this paper for a while. Anyway, the FTM is in C++26 draft, so this patch adds it, with the same condition as __cpp_lib_reflection. 2026-02-03 Jakub Jelinek <[email protected]> PR libstdc++/123921 * include/bits/version.def (define_static): New with the same values as reflection. * include/bits/version.h: Regenerate. * include/std/meta: Define also __glibcxx_want_define_static before including bits/version.h. * g++.dg/reflect/feat2.C: Add also test for __cpp_lib_define_static. * g++.dg/reflect/feat3.C: New test.
