mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
Both __cpp_impl_reflection and __cpp_lib_reflection were increased from 202506L to 202603L post Croydon, I assume to show that P3795R2 (maybe some issues too) have been implemented. Now, we do implement P3795R2 except for the is_applicable_type, is_nothrow_applicable_type and apply_result metafunctions, but Jonathan says there is agreement in LWG that to test for availability of those one should test __cpp_lib_reflection >= 202603L && __cpp_lib_apply >= 202603L. So, this patch bumps both FTMs. 2026-04-22 Jakub Jelinek <jakub@redhat.com> gcc/c-family/ * c-cppbuiltin.cc (c_cpp_builtins): Bump __cpp_impl_reflection value from 202506L to 202603L. gcc/testsuite/ * g++.dg/DRs/dr2581-2.C: Adjust for __cpp_impl_reflection bump from 202506L to 202603L. * g++.dg/reflect/feat1.C: Likewise. Also adjust for __cpp_lib_reflection bump from 202506L to 202603L. * g++.dg/reflect/feat2.C: Likewise. * g++.dg/reflect/feat3.C: Likewise. libstdc++-v3/ * include/bits/version.def (reflection): Bump 202506L to 202603L for both v and in extra_cond. * include/bits/version.h: Regenerate. * include/std/meta: Compare __glibcxx_reflection against 202603L rather than 202506L. * src/c++23/std.cc.in: Likewise. Reviewed-by: Jason Merrill <jason@redhat.com> Reviewed-by: Jonathan Wakely <jwakely@redhat.com>