https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83906
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Actually, the bug seems to FAIL at random, as shown by: while :; do echo -n .; make check RUNTESTFLAGS=prettyprinters.exp=80276.cc > /dev/null 2>/dev/null; grep -q ^FAIL testsuite/libstdc++.log && break; done Got one FAIL after printing 3 dots, another time after 5 dots, then 1 dot, 1 dot again. With patched 80276.cc with your patch, I get one FAIL after printing 2 dots, then 1 dot, 1 dot, 5 dots. So no, this patch doesn't help. This was i686-linux build, gdb-8.0.1-33.fc27.x86_64.