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: Fri, 25 Aug 2017 15:47:34 +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 #18 from Martin Sebor <msebor at gcc dot gnu.org> ---
GDB already has a C++ parser. It just isn't good enough. It understands that
B<unsigned> and B<unsigned int> are one and the same type but it interprets
A<2> and A<2u> as distinct. In my view, this is not just a limitation but a
bug.
But to be clear, my argument isn't so much against changing GCC but rather that
the right solution is to fix/enhance GDB. Changing GCC is just a workaround,
and it isn't even a very good one given that GCC 7 already emits a different
symbol.
In any event, you don't need my approval to propose a change to GCC. You need
the approval of the C++ debug info maintainer(s).