Fix some _GLIBCXX_DEBUG pretty printer errors

François Dumont frs.dumont@gmail.com
Fri Mar 9 05:57:00 GMT 2018


On 08/03/2018 19:11, Jonathan Wakely wrote:
> This caused a new regression for:
>
>    std::forward_list<std::string> flst;
>    std::forward_list<std::string>::iterator flstiter0;
> // { dg-final { note-test flstiter0 {non-dereferenceable iterator for
> std::forward_list}} }
>
>
> $1 = {_M_node = 0x0}
> got: $1 = {_M_node = 0x0}
> FAIL: libstdc++-prettyprinters/debug_cxx11.cc print flstiter0
>
Fixed by the attached patch, committed as trivial.

François

-------------- next part --------------
A non-text attachment was scrubbed...
Name: printers.patch
Type: text/x-patch
Size: 1160 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180309/0643b10a/attachment.bin>


More information about the Gcc-patches mailing list