https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932

--- Comment #10 from Martin Sebor <msebor at gcc dot gnu.org> ---
Unless the exact format for non-type template arguments is specified in DWARF
(I don't think it is) it seems that a more robust solution is to enhance GDB to
be able to understand types with and without the suffix (and other equivalent
forms).

In the type system there is no difference between A<2>, A<2U>, or A<(unsigned
int)2> and all three are emitted as the DW_AT_name by compilers for A<unsigned>
instantiated with the value 2.

But Jason is the DWARF expert so he should weigh in on this question.

Reply via email to