This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/49090] provide a way to recognize defaulted template parameters
- From: "tromey at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Feb 2013 18:18:01 +0000
- Subject: [Bug debug/49090] provide a way to recognize defaulted template parameters
- Auto-submitted: auto-generated
- References: <bug-49090-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49090
--- Comment #7 from Tom Tromey <tromey at gcc dot gnu.org> 2013-02-01 18:18:01 UTC ---
(In reply to comment #6)
> What do you think about G++ (also) switching to emitting K<int> for DW_AT_name
> in this case? Would that break GDB type compatibility with other translation
> units that had K<int,int>?
Yeah, I think it may confuse name lookup in other cases.
For example, I think methods of this class will still appear
to be in K<int,int>, because that will still be baked into the
mangled form. So this would mean that finding a method's class
would fail.
Come to think of it I'm not sure how I will make "ptype K<int>"
work given the current state of gdb's symbol tables. Baby steps...