[Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 24 17:36:00 GMT 2017
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.
More information about the Gcc-bugs
mailing list