https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113450
Bug ID: 113450
Summary: std/format/functions/format.cc FAILs
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
CC: redi at gcc dot gnu.org
Target Milestone: ---
Target: *-*-solaris2.11
The new std/format/functions/format.cc test FAILs on Solaris/SPARC and x86,
both
32 and 64-bit:
+FAIL: std/format/functions/format.cc -std=gnu++20 execution test
+FAIL: std/format/functions/format.cc -std=gnu++26 execution test
It shows an assertion failure
/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/std/format/functions/format.cc:360:
test_minmax()::<lambda(T, U)> [with T = char; U = unsigned char]: Assertion 's
== "-1" + zeros' failed.
#3 0x00027554 in operator()<char> (__closure=<optimized out>)
at
/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/std/format/functions/format.cc:360
360 VERIFY( s == "-1" + zeros );
(gdb) p s
$1 = {
_M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No
data fields>}, <No data fields>}, _M_p = 0xffbfe808 "10000000"},
_M_string_length = 8, {
_M_local_buf = "10000000\000\000\000\035\377\277\350\030",
_M_allocated_capacity = 825241648}}