https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932
--- Comment #15 from Martin Sebor <msebor at gcc dot gnu.org> --- (In reply to Xi Ruoyao from comment #14) The symbols in your example are the result/ouput of demangling but the issue reported here is with the symbols that are input into GDB. There is more than one way to represent the same specialization of a template (e.g., B<unsigned> and B<unsigned int>, or A<2> and A<2u>, or even A<1 + 1>). GDB should be able to accept all of them and recognize they all refer to the same specialization.