[Bug c++/82724] Larger than needed DWARF type declarations for explicitly instantiated class templates

paul_robinson at playstation dot sony.com gcc-bugzilla@gcc.gnu.org
Thu Oct 26 00:57:00 GMT 2017


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

--- Comment #5 from Paul Robinson <paul_robinson at playstation dot sony.com> ---
(In reply to David Blaikie from comment #4)
> What I'm saying is consumers already have to parse it to match up the same
> type name between compilers.

Consumers of objects produced by gcc or unmodified clang do, yes.
Not that it's a good thing, it's just engineering reality.

> Does the Sony debugger?

The Sony debugger throws away the <params> part and reconstructs info
to its liking from the template children.

Given that the Sony debugger doesn't have to contend with gcc-produced
objects, and we have our own clang that does what we want, we're happy.
I'm just pointing out that gcc and upstream clang are doing something
that is reasonably viewed as non-conformant and consumer-unfriendly.

It's the non-conformant part that mostly irks me.  Aside from that,
as long as compilers and debuggers understand each other that's the
important thing.

But you raised this bug really to point out an inconsistency within gcc
and that's worth addressing.  Which way it goes is not a big deal for me.
You cc'd me on the bug, which I took as a chance to say my piece, and
thanks for the opportunity.


More information about the Gcc-bugs mailing list