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

            Bug ID: 128817
           Summary: libstdc++-prettyprinters/chrono.cc FAILs with gdb 18.1
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---

The libstdc++-prettyprinters/chrono.cc test FAILs when using gdb 18.1 while it
is ok with e.g. 17.1 or 16.3:

FAIL: libstdc++-prettyprinters/chrono.cc -flto print hms
FAIL: libstdc++-prettyprinters/chrono.cc -flto print hms_nano
FAIL: libstdc++-prettyprinters/chrono.cc print hms
FAIL: libstdc++-prettyprinters/chrono.cc print hms_nano

I'm seeing this on several targets (32 and 64-bit Solaris/SPARC and x86,
Linux/x86_64, Linux/sparc64), to it's probably target independent.

Before, the log showed

print nawd
$25 = 04:03:02^M
got: $25 = 04:03:02\r\nPASS: libstdc++-prettyprinters/chrono.cc print hms
$26 = -14:13:12.000000011^M
got: $26 = -14:13:12.000000011\r\nPASS: libstdc++-prettyprinters/chrono.cc
print hms_nano

while now there's

print nawd
$25 = Traceback (most recent call last):
  File
"/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/../python/libstdcxx/v6/printers.py",
line 2254, in to_string
got: $25 = Traceback (most recent call last):\r\nFAIL:
libstdc++-prettyprinters/chrono.cc print hms
skipping:   File
"/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/../python/libstdcxx/v6/printers.py",
line 2254, in to_string\r\n    if val['fractional_width'] != 0:
skipping:     if val['fractional_width'] != 0:\r\n      
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gdb.error: skipping:        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nvalue has been
optimized out

skipping: gdb.error: value has been optimized out\r\n\r\n$26 = Traceback (most
recent call last):
  File
"/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/../python/libstdcxx/v6/printers.py",
line 2254, in to_string
got: $26 = Traceback (most recent call last):\r\nFAIL:
libstdc++-prettyprinters/chrono.cc print hms_nano

Reply via email to