This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Aug 2017 02:07:04 +0000
- Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
- Auto-submitted: auto-generated
- References: <bug-81932-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932
--- Comment #22 from Martin Sebor <msebor at gcc dot gnu.org> ---
Paul, have you considered determining the type of the specialization of the
template from an object of one instead of hardcoding its name?
I.e., instead of calling gdb.lookup_type("TreeVector<Pod, 2u>::Tree") in your
Python printer script, use something like gdb.lookup_type(str(vector.type) %
"::Tree")? (I couldn't get this to work but I could have done something
wrong.)