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

dblaikie at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 26 00:22:00 GMT 2017


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

--- Comment #4 from David Blaikie <dblaikie at gmail dot com> ---
> Making consumers parse names on the off chance they contain semantically
> significant information seems like a bit much, though.  Especially if they
> contain information in a ridiculous variety of spellings.  Never mind things
> like "Y" versus "(X)0u" you also have "const int" versus "int const" and all
> the other very-large-number variations.

What I'm saying is consumers already have to parse it to match up the same type
name between compilers.

Other than matching the names, what's the point of having the template
parameters available? There's no syntactic way, as a user, to name those
parameters to query them in GDB I've seen (the names of the parameters are
available for expression evaluation in the context of the entity - if there's
only a declaration of the entity, there's no such context).

I don't think GDB is trying to understand the parameters, or provides any way
for the user to interact with them in this case, but I could be wrong.

Does the Sony debugger?


More information about the Gcc-bugs mailing list