https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124312
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |16.3
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This seems like the simplest fix for the gcc-16 branch (it already works on
trunk):
--- a/libstdc++-v3/include/bits/c++config
+++ b/libstdc++-v3/include/bits/c++config
@@ -440,6 +440,12 @@ _GLIBCXX_END_NAMESPACE_VERSION
#define _GLIBCXX_ASSERTIONS 1
#endif
+// Likewise for reflection, as the debug mode vector<meta::info> doesn't work.
+#if defined(_GLIBCXX_DEBUG) && defined(__cpp_impl_reflection)
+#undef _GLIBCXX_DEBUG
+#define _GLIBCXX_ASSERTIONS 1
+#endif
+
// Inline namespaces for special modes: debug, parallel.
#if defined(_GLIBCXX_DEBUG) || defined(_GLIBCXX_PARALLEL)
namespace std