aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/java
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2026-02-03 14:22:46 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2026-02-03 14:22:46 +0100
commit4a514ea759f6045ef091504f2afcf4b618fe2639 (patch)
tree1a3c23d588061222988e563d03edabc03d0281a7 /libjava/classpath/java
parenta53c5c42c6c3c28275b79a8c29883f7a5ee754c0 (diff)
downloadgcc-4a514ea759f6045ef091504f2afcf4b618fe2639.zip
gcc-4a514ea759f6045ef091504f2afcf4b618fe2639.tar.gz
gcc-4a514ea759f6045ef091504f2afcf4b618fe2639.tar.bz2
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 <jakub@redhat.com> 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.
Diffstat (limited to 'libjava/classpath/java')
0 files changed, 0 insertions, 0 deletions