[Bug c++/124312] [reflection] vector<meta::info> unusable in consteval context with _GLIBCXX_DEBUG=1

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 5 15:11:30 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124312

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
When I try with -D_GLIBCXX_DEBUG=1
#include <vector>

std::vector<int> a;

int
foo ()
{
  return a.size ();
}
I see in *.original dump
<<cleanup_point return <retval> = (int) std::__cxx1998::vector<int,
std::allocator<int> >::size (&a.D.41397)>>;
so it is not (std::__cxx1998::vector<int, std::allocator<int>> *)&a.


More information about the Gcc-bugs mailing list