[Bug c++/87364] Pretty print of enumerator never prints the id, always falls back to C-style cast output

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 3 22:58:00 GMT 2019


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

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Will Wray from comment #4)
> Thanks Martin,
> 
> I investigated enum template args with GCC bug 81932 test code,
> repeating its GDB Python-debug-print test case for enum args.
> 
> Conclusion:
> This change to enum printing does not cause GDB to fail to look up
> non-type template specializations for enum type arguments;
> the lookup succeeds and there's no missing-type Python Exception.
> 
> However, GDB still produces a warning for an RTTI lookup failure.
> The warning is not serious; the type must be found some other way.

But it does cause test failures, which should have been addressed as part of
the patch.

It doesn't just affect our testsuite, since the pretty printers for
std::shared_ptr now print these noisy warnings.


More information about the Gcc-bugs mailing list