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).

Reply via email to