https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122821
Bug ID: 122821
Summary: FAIL: libstdc++-xmethods/deque.cc with
-D_GLIBCXX_DEBUG
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
make check -C testsuite RUNTESTFLAGS="xmethods.exp=deque.cc
--target_board=unix/-D_GLIBCXX_DEBUG"
FAIL: libstdc++-xmethods/deque.cc print q1.front()
FAIL: libstdc++-xmethods/deque.cc print q2.front()
FAIL: libstdc++-xmethods/deque.cc print q3.front()
The log shows that there's an unwanted "(type&) " prefix in the GDB output:
$7 = (__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type &)
@0x41c560: 100
The test is expecting just "100"
I don't know why this only happens for std::deque::front and I don't know why
it only happens with -D_GLIBCXX_DEBUG