[Bug debug/49090] provide a way to recognize defaulted template parameters
tromey at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 31 20:26:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49090
--- Comment #5 from Tom Tromey <tromey at gcc dot gnu.org> 2013-01-31 20:25:54 UTC ---
(In reply to comment #4)
> (In reply to comment #3)
> > > Note that we don't currently generate those tags for uninstantiated types.
> > I don't think I understand this last comment.
>
> I mean that if we only see
>
> K<char>* k;
>
> we see K<char>, but we don't need to instantiate it because nothing requires it
> to be complete, so in the DWARF we only see a declaration, which doesn't have
> the parameter tags. This probably isn't an issue in practice, as a definition
> will be emitted somewhere, and it will have the parameters.
Thanks, I see.
I think gdb will do its best under these circumstances.
More information about the Gcc-bugs
mailing list